<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-11 14:13:28 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Git - gitprotocol http</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Miscellaneous">
                                Miscellaneous                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="d7177bf5fb4a090e18194ba5c5c1c5da6521ebeccc77ec004fdc464c57ebb613/71" data-source="gitprotocol-http" onmousemove="i18n(this)">gitprotocol-http</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="84abdd9f48fc9507d463fc79d6d56fd42d43712a5231f895008e018e24e5871f/75" data-source="gitprotocol-http - Git HTTP-based protocols" onmousemove="i18n(this)">gitprotocol-http &mdash;  Git  HTTP-&pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&ycy;</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <div> <pre class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">over-the-wire-protocol</span>&gt;</span></pre> </div> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="2efa64349886a681a2deb73ee865ad103c13941fc883dd0e889ed4e9ce65be38/a9" data-source="Git supports two HTTP based transfer protocols. A &amp;quot;dumb&amp;quot; protocol which requires only a standard HTTP server on the server end of the connection, and a &amp;quot;smart&amp;quot; protocol which requires a Git aware CGI (or server module). This document describes both protocols." onmousemove="i18n(this)">Git  &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&iecy;&tcy; &dcy;&vcy;&acy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&acy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&icy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &ncy;&acy; &ocy;&scy;&ncy;&ocy;&vcy;&iecy; HTTP. &Pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;  &quot;dumb&quot; , &dcy;&lcy;&yacy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &tcy;&rcy;&iecy;&bcy;&ucy;&iecy;&tcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; HTTP-&scy;&iecy;&rcy;&vcy;&iecy;&rcy; &ncy;&acy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&iecy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy; &scy;&ocy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&icy;&yacy;, &icy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;  &quot;smart&quot; , &dcy;&lcy;&yacy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &tcy;&rcy;&iecy;&bcy;&ucy;&iecy;&tcy;&scy;&yacy; CGI (&icy;&lcy;&icy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ncy;&ycy;&jcy; &mcy;&ocy;&dcy;&ucy;&lcy;&softcy;) &scy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&kcy;&ocy;&jcy;  Git . &Vcy; &ecy;&tcy;&ocy;&mcy; &dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&iecy; &ocy;&pcy;&icy;&scy;&acy;&ncy;&ycy; &ocy;&bcy;&acy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&acy;.</span></p> <p><span data-i18n="05f5958070af94989d216739389a00adbe586cedc78c062b2d84e22a26a0ecd1/bc" data-source="As a design feature smart clients can automatically upgrade &amp;quot;dumb&amp;quot; protocol URLs to smart URLs. This permits all users to have the same published URL, and the peers automatically select the most efficient transport available to them." onmousemove="i18n(this)">&Vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &kcy;&ocy;&ncy;&scy;&tcy;&rcy;&ucy;&kcy;&tcy;&icy;&vcy;&ncy;&ocy;&jcy; &ocy;&scy;&ocy;&bcy;&iecy;&ncy;&ncy;&ocy;&scy;&tcy;&icy; &icy;&ncy;&tcy;&iecy;&lcy;&lcy;&iecy;&kcy;&tcy;&ucy;&acy;&lcy;&softcy;&ncy;&ycy;&iecy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &mcy;&ocy;&gcy;&ucy;&tcy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&tcy;&softcy; URL-&acy;&dcy;&rcy;&iecy;&scy;&acy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&acy;  &quot;dumb&quot;  &dcy;&ocy; &icy;&ncy;&tcy;&iecy;&lcy;&lcy;&iecy;&kcy;&tcy;&ucy;&acy;&lcy;&softcy;&ncy;&ycy;&khcy; URL-&acy;&dcy;&rcy;&iecy;&scy;&ocy;&vcy;. &Ecy;&tcy;&ocy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &vcy;&scy;&iecy;&mcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;&mcy; &icy;&mcy;&iecy;&tcy;&softcy; &ocy;&dcy;&icy;&ncy; &icy; &tcy;&ocy;&tcy; &zhcy;&iecy; &ocy;&pcy;&ucy;&bcy;&lcy;&icy;&kcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&jcy; URL-&acy;&dcy;&rcy;&iecy;&scy;, &acy; &ucy;&zcy;&lcy;&ycy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy; &vcy;&ycy;&bcy;&icy;&rcy;&acy;&yucy;&tcy; &ncy;&acy;&icy;&bcy;&ocy;&lcy;&iecy;&iecy; &ecy;&fcy;&fcy;&iecy;&kcy;&tcy;&icy;&vcy;&ncy;&ycy;&jcy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy;&jcy; &icy;&mcy; &tcy;&rcy;&acy;&ncy;&scy;&pcy;&ocy;&rcy;&tcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_url_format"><span data-i18n="63ef6557e81b611817c6944ccf3b106001f25df17b0b91736790213fdfd97ad6/aa" data-source="Url format" onmousemove="i18n(this)">Url format</span></h2> <div> <p><span data-i18n="03150fcaeac386443deeda759df771bfcb927e4efb84594ef271ba90e89ee020/d7" data-source="URLs for Git repositories accessed by HTTP use the standard HTTP URL syntax documented by RFC 1738, so they are of the form:" onmousemove="i18n(this)">URL-&acy;&dcy;&rcy;&iecy;&scy;&acy; &dcy;&lcy;&yacy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&iecy;&vcy;  Git , &kcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&mcy; &ocy;&scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy; &pcy;&ocy; HTTP, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &scy;&icy;&ncy;&tcy;&acy;&kcy;&scy;&icy;&scy; URL-&acy;&dcy;&rcy;&iecy;&scy;&ocy;&vcy; HTTP, &ocy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ycy;&jcy; &vcy; RFC 1738, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &ocy;&ncy;&icy; &icy;&mcy;&iecy;&yucy;&tcy; &vcy;&icy;&dcy;:</span></p> <div> <div> <pre class="hljs language-xml">http://<span class="hljs-tag">&lt;<span class="hljs-name">host</span>&gt;</span>:<span class="hljs-tag">&lt;<span class="hljs-name">port</span>&gt;</span>/<span class="hljs-tag">&lt;<span class="hljs-name">path</span>&gt;</span>?<span class="hljs-tag">&lt;<span class="hljs-name">searchpart</span>&gt;</span></pre> </div> </div> <p><span data-i18n="724e0f4c44eb5c0c5ac849e4820d7f5f465ea12757b1210e8049b67dc2c231ed/f5" data-source="Within this documentation the placeholder &lt;code&gt;$GIT_URL&lt;/code&gt; will stand for the http:// repository URL entered by the end-user." onmousemove="i18n(this)">&Vcy; &ecy;&tcy;&ocy;&jcy; &dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&tscy;&icy;&icy; &zcy;&acy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;  <code>$GIT_URL</code>  &bcy;&ucy;&dcy;&iecy;&tcy; &ocy;&bcy;&ocy;&zcy;&ncy;&acy;&chcy;&acy;&tcy;&softcy; URL-&acy;&dcy;&rcy;&iecy;&scy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy; http://, &vcy;&vcy;&iecy;&dcy;&iecy;&ncy;&ncy;&ycy;&jcy; &kcy;&ocy;&ncy;&iecy;&chcy;&ncy;&ycy;&mcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&iecy;&mcy;.</span></p> <p><span data-i18n="183e1a8b06bf2615da8de864e1bd4a5830dd43b88dcb128b7b83866c46d64913/06" data-source="Servers SHOULD handle all requests to locations matching &lt;code&gt;$GIT_URL&lt;/code&gt;, as both the &amp;quot;smart&amp;quot; and &amp;quot;dumb&amp;quot; HTTP protocols used by Git operate by appending additional path components onto the end of the user supplied &lt;code&gt;$GIT_URL&lt;/code&gt; string." onmousemove="i18n(this)">&Scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy;&mcy; &Scy;&Lcy;&IEcy;&Dcy;&Ucy;&IEcy;&Tcy; &ocy;&bcy;&rcy;&acy;&bcy;&acy;&tcy;&ycy;&vcy;&acy;&tcy;&softcy; &vcy;&scy;&iecy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&ycy; &kcy; &mcy;&iecy;&scy;&tcy;&ocy;&pcy;&ocy;&lcy;&ocy;&zhcy;&iecy;&ncy;&icy;&yacy;&mcy;, &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&mcy;  <code>$GIT_URL</code>  , &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&ycy; HTTP  &quot;smart&quot;  &icy;  &quot;dumb&quot; , &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&mcy;&ycy;&iecy;  Git , &rcy;&acy;&bcy;&ocy;&tcy;&acy;&yucy;&tcy; &pcy;&ucy;&tcy;&iecy;&mcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&khcy; &kcy;&ocy;&mcy;&pcy;&ocy;&ncy;&iecy;&ncy;&tcy;&ocy;&vcy; &pcy;&ucy;&tcy;&icy; &vcy; &kcy;&ocy;&ncy;&iecy;&tscy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&iecy;&mcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;  <code>$GIT_URL</code> .</span></p> <p><span data-i18n="2c3a8c44cb7be16dfe14df5cfb6e7f0d974c763b488155003f78ea552ee9956b/34" data-source="An example of a dumb client requesting a loose object:" onmousemove="i18n(this)">&Pcy;&rcy;&icy;&mcy;&iecy;&rcy; &tcy;&ucy;&pcy;&ocy;&gcy;&ocy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&acy;, &zcy;&acy;&pcy;&rcy;&acy;&shcy;&icy;&vcy;&acy;&yucy;&shchcy;&iecy;&gcy;&ocy; &scy;&vcy;&ocy;&bcy;&ocy;&dcy;&ncy;&ycy;&jcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;:</span></p> <div> <div> <pre class="hljs language-bash"><span class="hljs-variable">$GIT_URL</span>:     http://example.com:8080/git/repo.git
URL request:  http://example.com:8080/git/repo.git/objects/d0/49f6c27a2244e12041955e262a404c7faba355</pre> </div> </div> <p><span data-i18n="499500b05c26085e36147d6dadecc07a07f75ef2146b60bb02d48fb2f7893d59/fe" data-source="An example of a smart request to a catch-all gateway:" onmousemove="i18n(this)">&Pcy;&rcy;&icy;&mcy;&iecy;&rcy; &icy;&ncy;&tcy;&iecy;&lcy;&lcy;&iecy;&kcy;&tcy;&ucy;&acy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&acy; &kcy; &ucy;&ncy;&icy;&vcy;&iecy;&rcy;&scy;&acy;&lcy;&softcy;&ncy;&ocy;&mcy;&ucy; &shcy;&lcy;&yucy;&zcy;&ucy;:</span></p> <div> <div> <pre class="hljs language-perl">$GIT_URL:     http:<span class="hljs-regexp">//</span>example.com/daemon.cgi?svc=git&amp;<span class="hljs-keyword">q</span>=
URL request:  http:<span class="hljs-regexp">//</span>example.com/daemon.cgi?svc=git&amp;<span class="hljs-keyword">q</span>=<span class="hljs-regexp">/info/r</span>efs&amp;service=git-receive-<span class="hljs-keyword">pack</span></pre> </div> </div> <p><span data-i18n="8d6dca3592b267f49c83c0965070ec0de426193950e7ab52b25aff27fc0abb84/7e" data-source="An example of a request to a submodule:" onmousemove="i18n(this)">&Pcy;&rcy;&icy;&mcy;&iecy;&rcy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&acy; &kcy; &pcy;&ocy;&dcy;&mcy;&ocy;&dcy;&ucy;&lcy;&yucy;:</span></p> <div> <div> <pre class="hljs language-bash"><span class="hljs-variable">$GIT_URL</span>:     http://example.com/git/repo.git/path/submodule.git
URL request:  http://example.com/git/repo.git/path/submodule.git/info/refs</pre> </div> </div> <p><span data-i18n="7b852e26099d4aff4dc3cba3af6a05b33283ba7e49a0df376fb4edd528336e03/62" data-source="Clients MUST strip a trailing &lt;code&gt;/&lt;/code&gt;, if present, from the user supplied &lt;code&gt;$GIT_URL&lt;/code&gt; string to prevent empty path tokens (&lt;code&gt;//&lt;/code&gt;) from appearing in any URL sent to a server. Compatible clients MUST expand &lt;code&gt;$GIT_URL/info/refs&lt;/code&gt; as &lt;code&gt;foo/info/refs&lt;/code&gt; and not &lt;code&gt;foo//info/refs&lt;/code&gt;." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &ucy;&dcy;&acy;&lcy;&icy;&tcy;&softcy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&yucy;&shchcy;&icy;&jcy;  <code>/</code>  , &iecy;&scy;&lcy;&icy; &ocy;&ncy; &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;, &icy;&zcy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&iecy;&mcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;  <code>$GIT_URL</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&tcy;&icy;&tcy;&softcy; &pcy;&ocy;&yacy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &pcy;&ucy;&scy;&tcy;&ycy;&khcy; &tcy;&ocy;&kcy;&iecy;&ncy;&ocy;&vcy; &pcy;&ucy;&tcy;&icy; (  <code>//</code>  ) &vcy; &lcy;&yucy;&bcy;&ocy;&mcy; URL-&acy;&dcy;&rcy;&iecy;&scy;&iecy;, &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&mcy;&ocy;&mcy; &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;. &Scy;&ocy;&vcy;&mcy;&iecy;&scy;&tcy;&icy;&mcy;&ycy;&iecy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &rcy;&acy;&scy;&shcy;&icy;&rcy;&yacy;&tcy;&softcy;  <code>$GIT_URL/info/refs</code>  &kcy;&acy;&kcy;  <code>foo/info/refs</code> , &acy; &ncy;&iecy;  <code>foo//info/refs</code> .</span></p> </div> <h2 class="text-body-emphasis"  id="_authentication"><span data-i18n="66880d2d8216260d201917a72eb245440ef18ba9b54c070ee39aa4c343ae126f/eb" data-source="Authentication" onmousemove="i18n(this)">Authentication</span></h2> <div> <p><span data-i18n="ab2081fcdc0841a763c7609ac719ea853f4a246c25f2897892663419be6d2de6/8b" data-source="Standard HTTP authentication is used if authentication is required to access a repository, and MAY be configured and enforced by the HTTP server software." onmousemove="i18n(this)">&Scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&acy;&yacy; &acy;&ucy;&tcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&yacy; HTTP &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy;, &iecy;&scy;&lcy;&icy; &acy;&ucy;&tcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&yacy; &tcy;&rcy;&iecy;&bcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&acy; &kcy; &khcy;&rcy;&acy;&ncy;&icy;&lcy;&icy;&shchcy;&ucy;, &icy; &Mcy;&Ocy;&ZHcy;&IEcy;&Tcy; &bcy;&ycy;&tcy;&softcy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&iecy;&ncy;&acy; &icy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&iecy;&ncy;&acy; &pcy;&rcy;&ocy;&gcy;&rcy;&acy;&mcy;&mcy;&ncy;&ycy;&mcy; &ocy;&bcy;&iecy;&scy;&pcy;&iecy;&chcy;&iecy;&ncy;&icy;&iecy;&mcy; HTTP-&scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy;.</span></p> <p><span data-i18n="0b5115a80948d88e31190118eae2d7336aeafb55e3abb8df3cd203f38513f41e/d1" data-source="Because Git repositories are accessed by standard path components server administrators MAY use directory based permissions within their HTTP server to control repository access." onmousemove="i18n(this)">&Pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy; &kcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;&mcy;  Git  &ocy;&scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ocy;&mcy;&ucy; &pcy;&ucy;&tcy;&icy;, &acy;&dcy;&mcy;&icy;&ncy;&icy;&scy;&tcy;&rcy;&acy;&tcy;&ocy;&rcy;&ycy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ocy;&vcy; &Mcy;&Ocy;&Gcy;&Ucy;&Tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&yacy; &ncy;&acy; &ocy;&scy;&ncy;&ocy;&vcy;&iecy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&vcy; &ncy;&acy; &scy;&vcy;&ocy;&iecy;&mcy; HTTP-&scy;&iecy;&rcy;&vcy;&iecy;&rcy;&iecy; &dcy;&lcy;&yacy; &ucy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ocy;&mcy; &kcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yucy;.</span></p> <p><span data-i18n="92133421acc9dd2dd22004bc031558e9da38f2d7862bd0a6c4e334a9fc3eb364/1e" data-source="Clients SHOULD support Basic authentication as described by RFC 2617. Servers SHOULD support Basic authentication by relying upon the HTTP server placed in front of the Git server software." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&acy;&mcy; &Scy;&Lcy;&IEcy;&Dcy;&Ucy;&IEcy;&Tcy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&tcy;&softcy; &bcy;&acy;&zcy;&ocy;&vcy;&ucy;&yucy; &acy;&ucy;&tcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&yucy;, &kcy;&acy;&kcy; &ocy;&pcy;&icy;&scy;&acy;&ncy;&ocy; &vcy; RFC 2617. &Scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy;&mcy; &Scy;&Lcy;&IEcy;&Dcy;&Ucy;&IEcy;&Tcy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&tcy;&softcy; &bcy;&acy;&zcy;&ocy;&vcy;&ucy;&yucy; &acy;&ucy;&tcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&yucy;, &pcy;&ocy;&lcy;&acy;&gcy;&acy;&yacy;&scy;&softcy; &ncy;&acy; HTTP-&scy;&iecy;&rcy;&vcy;&iecy;&rcy;, &rcy;&acy;&scy;&pcy;&ocy;&lcy;&ocy;&zhcy;&iecy;&ncy;&ncy;&ycy;&jcy; &pcy;&iecy;&rcy;&iecy;&dcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ncy;&ycy;&mcy; &pcy;&rcy;&ocy;&gcy;&rcy;&acy;&mcy;&mcy;&ncy;&ycy;&mcy; &ocy;&bcy;&iecy;&scy;&pcy;&iecy;&chcy;&iecy;&ncy;&icy;&iecy;&mcy;  Git .</span></p> <p><span data-i18n="fbde485b40af3d6523b5a55f22c995fe2955df92e9d398e53faa12aa11711f9e/06" data-source="Servers SHOULD NOT require HTTP cookies for the purposes of authentication or access control." onmousemove="i18n(this)">&Scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy;&mcy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ocy; &tcy;&rcy;&iecy;&bcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; cookie HTTP &dcy;&lcy;&yacy; &tscy;&iecy;&lcy;&iecy;&jcy; &acy;&ucy;&tcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy; &icy;&lcy;&icy; &kcy;&ocy;&ncy;&tcy;&rcy;&ocy;&lcy;&yacy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&acy;.</span></p> <p><span data-i18n="0183ade198f0157a3d2b4e68709ca3a7706438aeafe2143c26060b038baac133/96" data-source="Clients and servers MAY support other common forms of HTTP based authentication, such as Digest authentication." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &icy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy; &Mcy;&Ocy;&Gcy;&Ucy;&Tcy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&tcy;&softcy; &dcy;&rcy;&ucy;&gcy;&icy;&iecy; &rcy;&acy;&scy;&pcy;&rcy;&ocy;&scy;&tcy;&rcy;&acy;&ncy;&iecy;&ncy;&ncy;&ycy;&iecy; &fcy;&ocy;&rcy;&mcy;&ycy; &acy;&ucy;&tcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy; &ncy;&acy; &ocy;&scy;&ncy;&ocy;&vcy;&iecy; HTTP, &tcy;&acy;&kcy;&icy;&iecy; &kcy;&acy;&kcy; &dcy;&acy;&jcy;&dcy;&zhcy;&iecy;&scy;&tcy;-&acy;&ucy;&tcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&yacy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_ssl"><span data-i18n="9d67fd777848f65e321ec78b4528b7b100621385a22ad9d46e9de060a7b30204/7d" data-source="Ssl" onmousemove="i18n(this)">Ssl</span></h2> <div> <p><span data-i18n="d99a24a4df8a1957c28ccf46663ff66a968a2d451c97012f99e0b53681a6260c/c6" data-source="Clients and servers SHOULD support SSL, particularly to protect passwords when relying on Basic HTTP authentication." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &icy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&tcy;&softcy; SSL, &ocy;&scy;&ocy;&bcy;&iecy;&ncy;&ncy;&ocy; &dcy;&lcy;&yacy; &zcy;&acy;&shchcy;&icy;&tcy;&ycy; &pcy;&acy;&rcy;&ocy;&lcy;&iecy;&jcy; &pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &bcy;&acy;&zcy;&ocy;&vcy;&ocy;&jcy; HTTP-&acy;&ucy;&tcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_session_state"><span data-i18n="8b90128f9e3dca4546bffc03a0f901e3be5c14f076da24f7bf745f862aef1248/e3" data-source="Session state" onmousemove="i18n(this)">Session state</span></h2> <div> <p><span data-i18n="1acf6057d0b4860a1997907ceb4064a94ec6e48488a8a16ec26a3d6d90c3194f/10" data-source="The Git over HTTP protocol (much like HTTP itself) is stateless from the perspective of the HTTP server side. All state MUST be retained and managed by the client process. This permits simple round-robin load-balancing on the server side, without needing to worry about state management." onmousemove="i18n(this)">&Pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;  Git  over HTTP (&kcy;&acy;&kcy; &icy; &scy;&acy;&mcy; HTTP) &ncy;&iecy; &icy;&mcy;&iecy;&iecy;&tcy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&yacy; &scy; &tcy;&ocy;&chcy;&kcy;&icy; &zcy;&rcy;&iecy;&ncy;&icy;&yacy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&ycy; HTTP-&scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy;. &Vcy;&scy;&iecy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ocy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&tcy;&softcy;&scy;&yacy; &icy; &ucy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy;&scy;&yacy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&scy;&kcy;&icy;&mcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ocy;&mcy;. &Ecy;&tcy;&ocy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&tcy;&softcy; &pcy;&rcy;&ocy;&scy;&tcy;&ucy;&yucy; &tscy;&icy;&kcy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&ucy;&yucy; &bcy;&acy;&lcy;&acy;&ncy;&scy;&icy;&rcy;&ocy;&vcy;&kcy;&ucy; &ncy;&acy;&gcy;&rcy;&ucy;&zcy;&kcy;&icy; &ncy;&acy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&iecy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy;, &ncy;&iecy; &bcy;&iecy;&scy;&pcy;&ocy;&kcy;&ocy;&yacy;&scy;&softcy; &ocy;&bcy; &ucy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&icy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy;&mcy;.</span></p> <p><span data-i18n="342f07d2edd1a67426fc4038584d96b1d87f854614df4a500ad30d77a3021a92/3b" data-source="Clients MUST NOT require state management on the server side in order to function correctly." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &tcy;&rcy;&iecy;&bcy;&ocy;&vcy;&acy;&tcy;&softcy; &ucy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy;&mcy; &ncy;&acy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&iecy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy; &dcy;&lcy;&yacy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&softcy;&ncy;&ocy;&jcy; &rcy;&acy;&bcy;&ocy;&tcy;&ycy;.</span></p> <p><span data-i18n="28b60460284c370112983e860f942e12e3653fe4d88fc81c8ddc39fb0d005e62/9e" data-source="Servers MUST NOT require HTTP cookies in order to function correctly. Clients MAY store and forward HTTP cookies during request processing as described by RFC 2616 (HTTP/1.1). Servers SHOULD ignore any cookies sent by a client." onmousemove="i18n(this)">&Scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &tcy;&rcy;&iecy;&bcy;&ocy;&vcy;&acy;&tcy;&softcy; HTTP-&kcy;&ucy;&kcy;&icy; &dcy;&lcy;&yacy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&softcy;&ncy;&ocy;&jcy; &rcy;&acy;&bcy;&ocy;&tcy;&ycy;. &Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Mcy;&Ocy;&Gcy;&Ucy;&Tcy; &khcy;&rcy;&acy;&ncy;&icy;&tcy;&softcy; &icy; &pcy;&iecy;&rcy;&iecy;&scy;&ycy;&lcy;&acy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy;&ycy; cookie HTTP &vcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &ocy;&bcy;&rcy;&acy;&bcy;&ocy;&tcy;&kcy;&icy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&acy;, &kcy;&acy;&kcy; &ocy;&pcy;&icy;&scy;&acy;&ncy;&ocy; &vcy; RFC 2616 (HTTP/1.1). &Scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy;&mcy; &Scy;&Lcy;&IEcy;&Dcy;&Ucy;&IEcy;&Tcy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &lcy;&yucy;&bcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; cookie, &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ocy;&mcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_general_request_processing"><span data-i18n="260a2b7da74827319e6d5c81d3cd6ea26bbfca7e39ff8ee25a4f61f8be1ae27c/1d" data-source="General request processing" onmousemove="i18n(this)">&Ocy;&bcy;&shchcy;&acy;&yacy; &ocy;&bcy;&rcy;&acy;&bcy;&ocy;&tcy;&kcy;&acy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&ocy;&vcy;</span></h2> <div> <p><span data-i18n="5d258b7b537a9b3ec2e187b2bf6c10e8e5db11b6d7fff331318375772112bbf0/43" data-source="Except where noted, all standard HTTP behavior SHOULD be assumed by both client and server. This includes (but is not necessarily limited to):" onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ocy; &icy;&ncy;&ocy;&iecy;, &vcy;&scy;&iecy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ocy;&iecy; &pcy;&ocy;&vcy;&iecy;&dcy;&iecy;&ncy;&icy;&iecy; HTTP &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ocy; &bcy;&ycy;&tcy;&softcy; &pcy;&rcy;&icy;&ncy;&yacy;&tcy;&ocy; &kcy;&acy;&kcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ocy;&mcy;, &tcy;&acy;&kcy; &icy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ocy;&mcy;. &Ecy;&tcy;&ocy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&iecy;&tcy; (&ncy;&ocy; &ncy;&iecy; &ocy;&bcy;&yacy;&zcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&icy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;):</span></p> <p><span data-i18n="78ec9484af1c1c61707d61582a7f646733150955852543586ba8853f30afb807/7c" data-source="If there is no repository at &lt;code&gt;$GIT_URL&lt;/code&gt;, or the resource pointed to by a location matching &lt;code&gt;$GIT_URL&lt;/code&gt; does not exist, the server MUST NOT respond with &lt;code&gt;200 OK&lt;/code&gt; response. A server SHOULD respond with &lt;code&gt;404 Not Found&lt;/code&gt;, &lt;code&gt;410 Gone&lt;/code&gt;, or any other suitable HTTP status code which does not imply the resource exists as requested." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &vcy;  <code>$GIT_URL</code>  &ncy;&iecy;&tcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy; &icy;&lcy;&icy; &rcy;&iecy;&scy;&ucy;&rcy;&scy;, &ncy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &mcy;&iecy;&scy;&tcy;&ocy;&pcy;&ocy;&lcy;&ocy;&zhcy;&iecy;&ncy;&icy;&iecy;, &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&iecy;  <code>$GIT_URL</code> , &ncy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;, &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &ocy;&tcy;&vcy;&iecy;&chcy;&acy;&tcy;&softcy; &ocy;&tcy;&vcy;&iecy;&tcy;&ocy;&mcy;  <code>200 OK</code> . &Scy;&iecy;&rcy;&vcy;&iecy;&rcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &ocy;&tcy;&vcy;&iecy;&tcy;&icy;&tcy;&softcy;  <code>404 Not Found</code>  ,  <code>410 Gone</code>  &icy;&lcy;&icy; &lcy;&yucy;&bcy;&ycy;&mcy; &dcy;&rcy;&ucy;&gcy;&icy;&mcy; &pcy;&ocy;&dcy;&khcy;&ocy;&dcy;&yacy;&shchcy;&icy;&mcy; &kcy;&ocy;&dcy;&ocy;&mcy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&yacy; HTTP, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &ncy;&iecy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &rcy;&iecy;&scy;&ucy;&rcy;&scy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &pcy;&ocy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&ucy;.</span></p> <p><span data-i18n="1459edbda0c85ddc829b608e66db9a8ddab447055e1bb1ad19725b56484df12a/5c" data-source="If there is a repository at &lt;code&gt;$GIT_URL&lt;/code&gt;, but access is not currently permitted, the server MUST respond with the &lt;code&gt;403 Forbidden&lt;/code&gt; HTTP status code." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &pcy;&ocy; &acy;&dcy;&rcy;&iecy;&scy;&ucy;  <code>$GIT_URL</code>  &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;, &ncy;&ocy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy; &vcy; &ncy;&acy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &ncy;&iecy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;, &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &ocy;&tcy;&vcy;&iecy;&tcy;&icy;&tcy;&softcy; &kcy;&ocy;&dcy;&ocy;&mcy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&yacy; HTTP  <code>403 Forbidden</code> .</span></p> <p><span data-i18n="322d2e936756d1c89a262b7e43349dc7cf2285fc3422e87acd150812a9cdea66/6f" data-source="Servers SHOULD support both HTTP 1.0 and HTTP 1.1. Servers SHOULD support chunked encoding for both request and response bodies." onmousemove="i18n(this)">&Scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&tcy;&softcy; &kcy;&acy;&kcy; HTTP 1.0, &tcy;&acy;&kcy; &icy; HTTP 1.1. &Scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&tcy;&softcy; &fcy;&rcy;&acy;&gcy;&mcy;&iecy;&ncy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy;&iecy; &kcy;&ocy;&dcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &kcy;&acy;&kcy; &dcy;&lcy;&yacy; &tcy;&iecy;&lcy;&acy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&acy;, &tcy;&acy;&kcy; &icy; &dcy;&lcy;&yacy; &tcy;&iecy;&lcy;&acy; &ocy;&tcy;&vcy;&iecy;&tcy;&acy;.</span></p> <p><span data-i18n="3d2ff3ab9d1617e8dee74aeaf39563cc19ae2485afa9c35b0dc5dd37fd09d33c/e6" data-source="Clients SHOULD support both HTTP 1.0 and HTTP 1.1. Clients SHOULD support chunked encoding for both request and response bodies." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&tcy;&softcy; &kcy;&acy;&kcy; HTTP 1.0, &tcy;&acy;&kcy; &icy; HTTP 1.1. &Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&acy;&mcy; &Scy;&Lcy;&IEcy;&Dcy;&Ucy;&IEcy;&Tcy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&tcy;&softcy; &fcy;&rcy;&acy;&gcy;&mcy;&iecy;&ncy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy;&iecy; &kcy;&ocy;&dcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &kcy;&acy;&kcy; &dcy;&lcy;&yacy; &tcy;&iecy;&lcy;&acy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&acy;, &tcy;&acy;&kcy; &icy; &dcy;&lcy;&yacy; &tcy;&iecy;&lcy;&acy; &ocy;&tcy;&vcy;&iecy;&tcy;&acy;.</span></p> <p><span data-i18n="c37b6d0ec2e4f3ab0d056883c12afea1fb100ce05e56cd3e33a6a52b768e57e5/eb" data-source="Servers MAY return ETag and/or Last-Modified headers." onmousemove="i18n(this)">&Scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy; &Mcy;&Ocy;&Gcy;&Ucy;&Tcy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&acy;&tcy;&softcy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy; ETag &icy;/&icy;&lcy;&icy; Last-Modified.</span></p> <p><span data-i18n="4f584ff2e2e4a054357f7760fc4b6b39adb0739c1f42febc485eb90b53b6b363/20" data-source="Clients MAY revalidate cached entities by including If-Modified-Since and/or If-None-Match request headers." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Mcy;&Ocy;&Gcy;&Ucy;&Tcy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&yacy;&tcy;&softcy; &kcy;&ecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy;, &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&yacy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&acy; If-Modified-Since &icy;/&icy;&lcy;&icy; If-None-Match.</span></p> <p><span data-i18n="873c45e9894055329585455230949aafd62139470829ce9234a7d07ae0f47d88/18" data-source="Servers MAY return &lt;code&gt;304 Not Modified&lt;/code&gt; if the relevant headers appear in the request and the entity has not changed. Clients MUST treat &lt;code&gt;304 Not Modified&lt;/code&gt; identical to &lt;code&gt;200 OK&lt;/code&gt; by reusing the cached entity." onmousemove="i18n(this)">&Scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy; &Mcy;&Ocy;&Gcy;&Ucy;&Tcy; &vcy;&iecy;&rcy;&ncy;&ucy;&tcy;&softcy;  <code>304 Not Modified</code> , &iecy;&scy;&lcy;&icy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy; &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy; &vcy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&iecy; &icy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy; &ncy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&lcy;&scy;&yacy;. &Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &ocy;&bcy;&rcy;&acy;&bcy;&acy;&tcy;&ycy;&vcy;&acy;&tcy;&softcy;  <code>304 Not Modified</code>  &icy;&dcy;&iecy;&ncy;&tcy;&icy;&chcy;&ncy;&ocy;  <code>200 OK</code> , &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yacy; &kcy;&ecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&jcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;.</span></p> <p><span data-i18n="1a2783ae9ae4803835e1109d117d7266489359476fcd594f2771b70e80ddab3d/a0" data-source="Clients MAY reuse a cached entity without revalidation if the Cache-Control and/or Expires header permits caching. Clients and servers MUST follow RFC 2616 for cache controls." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Mcy;&Ocy;&Gcy;&Ucy;&Tcy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &kcy;&ecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&jcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy; &bcy;&iecy;&zcy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy;, &iecy;&scy;&lcy;&icy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&ocy;&kcy; Cache-Control &icy;/&icy;&lcy;&icy; Expires &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&acy;&iecy;&tcy; &kcy;&ecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy;. &Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &icy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &scy;&lcy;&iecy;&dcy;&ocy;&vcy;&acy;&tcy;&softcy; RFC 2616 &dcy;&lcy;&yacy; &ucy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &kcy;&ecy;&shcy;&iecy;&mcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_discovering_references"><span data-i18n="62f23d9f66fa9fe5beea8878d40fb3065088f29923f8cde5ecfe1f4ad87a1998/58" data-source="Discovering references" onmousemove="i18n(this)">Discovering references</span></h2> <div> <p><span data-i18n="6ef363941109777d811384b2fd1e638058c47e69eb0eacceee027ed959ac19e3/b6" data-source="All HTTP clients MUST begin either a fetch or a push exchange by discovering the references available on the remote repository." onmousemove="i18n(this)">&Vcy;&scy;&iecy; HTTP-&kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &ncy;&acy;&chcy;&acy;&tcy;&softcy; &lcy;&icy;&bcy;&ocy; &vcy;&ycy;&bcy;&ocy;&rcy;&kcy;&ucy;, &lcy;&icy;&bcy;&ocy; push-&ocy;&bcy;&mcy;&iecy;&ncy;, &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&icy;&vcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy;&iecy; &vcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;.</span></p> <div> <h3 class="text-body-emphasis"  id="_dumb_clients"><span data-i18n="0eb97bef379ff0b2c0f73b61b23e2a7cf19df484463ab88b0cc14e1a2b559d95/b6" data-source="Dumb Clients" onmousemove="i18n(this)">Dumb Clients</span></h3> <p><span data-i18n="aabe1efd87ff784f81750090f2674041af460c55e7269c42ea50eacf73416c37/4e" data-source="HTTP clients that only support the &amp;quot;dumb&amp;quot; protocol MUST discover references by making a request for the special info/refs file of the repository." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; HTTP, &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&yucy;&shchcy;&icy;&iecy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;  &quot;dumb&quot; , &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&icy;&vcy;&acy;&tcy;&softcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&yacy; &zcy;&acy;&pcy;&rcy;&ocy;&scy; &ncy;&acy; &scy;&pcy;&iecy;&tscy;&icy;&acy;&lcy;&softcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; info/refs &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;.</span></p> <p><span data-i18n="a7b98587521957e42b00eea906246af4ee6333feb3a259c10b5ef1a7a4bccb1a/b9" data-source="Dumb HTTP clients MUST make a &lt;code&gt;GET&lt;/code&gt; request to &lt;code&gt;$GIT_URL/info/refs&lt;/code&gt;, without any search/query parameters." onmousemove="i18n(this)">&Gcy;&lcy;&ucy;&pcy;&ycy;&iecy; HTTP-&kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;  <code>GET</code>  &ncy;&acy;  <code>$GIT_URL/info/refs</code>  &bcy;&iecy;&zcy; &kcy;&acy;&kcy;&icy;&khcy;-&lcy;&icy;&bcy;&ocy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy; &pcy;&ocy;&icy;&scy;&kcy;&acy;/&zcy;&acy;&pcy;&rcy;&ocy;&scy;&acy;.</span></p> <div> <div> <pre class="hljs language-bash">C: GET <span class="hljs-variable">$GIT_URL</span>/info/refs HTTP/1.0</pre> </div> </div> <div> <div> <pre class="hljs language-makefile"><span class="hljs-section">S: 200 OK</span>
<span class="hljs-section">S:</span>
<span class="hljs-section">S: 95dcfa3633004da0049d3d0fa03f80589cbcaf31        refs/heads/maint</span>
<span class="hljs-section">S: d049f6c27a2244e12041955e262a404c7faba355        refs/heads/master</span>
<span class="hljs-section">S: 2cb58b79488a98d2721cea644875a8dd0026b115        refs/tags/v1.0</span>
<span class="hljs-section">S: a3c2e2402b99163d1d59756e5f207ae21cccba4c        refs/tags/v1.0^{}</span></pre> </div> </div> <p><span data-i18n="c8c88d37c8d050fcf683f3e913c89a603c345598590bbfc23ad3242d58892088/36" data-source="The Content-Type of the returned info/refs entity SHOULD be &lt;code&gt;text/plain; charset=utf-8&lt;/code&gt;, but MAY be any content type. Clients MUST NOT attempt to validate the returned Content-Type. Dumb servers MUST NOT return a return type starting with &lt;code&gt;application/x-git-&lt;/code&gt;." onmousemove="i18n(this)">Content-Type &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&acy;&iecy;&mcy;&ocy;&gcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy; info/refs &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &bcy;&ycy;&tcy;&softcy;  <code>text/plain; charset=utf-8</code>  , &ncy;&ocy; &Mcy;&Ocy;&ZHcy;&IEcy;&Tcy; &bcy;&ycy;&tcy;&softcy; &lcy;&yucy;&bcy;&ycy;&mcy; &tcy;&icy;&pcy;&ocy;&mcy; &kcy;&ocy;&ncy;&tcy;&iecy;&ncy;&tcy;&acy;. &Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &pcy;&ycy;&tcy;&acy;&tcy;&softcy;&scy;&yacy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&icy;&tcy;&softcy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&iecy;&ncy;&ncy;&ycy;&jcy; Content-Type. &Gcy;&lcy;&ucy;&pcy;&ycy;&iecy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&acy;&tcy;&softcy; &tcy;&icy;&pcy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&acy;&iecy;&mcy;&ocy;&gcy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy;, &ncy;&acy;&chcy;&icy;&ncy;&acy;&yucy;&shchcy;&icy;&jcy;&scy;&yacy; &scy;  <code>application/x-git-</code> .</span></p> <p><span data-i18n="7f72fdc96b2ad590d4c7fe95c6fe0f16ee9a5d8ea7b327b6dd5ae39f28758204/25" data-source="Cache-Control headers MAY be returned to disable caching of the returned entity." onmousemove="i18n(this)">&Zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy; Cache-Control &Mcy;&Ocy;&Gcy;&Ucy;&Tcy; &bcy;&ycy;&tcy;&softcy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&iecy;&ncy;&ycy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&tcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&softcy; &kcy;&iecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&acy;&iecy;&mcy;&ocy;&gcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;.</span></p> <p><span data-i18n="53d0a70244e47da41d9613f595a1c0737ccfd20929b983ade35d0f0daaff762e/91" data-source="When examining the response clients SHOULD only examine the HTTP status code. Valid responses are &lt;code&gt;200 OK&lt;/code&gt;, or &lt;code&gt;304 Not Modified&lt;/code&gt;." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&iecy; &ocy;&tcy;&vcy;&iecy;&tcy;&acy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&acy;&mcy; &Scy;&Lcy;&IEcy;&Dcy;&Ucy;&IEcy;&Tcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&yacy;&tcy;&softcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &kcy;&ocy;&dcy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&yacy; HTTP. &Dcy;&ocy;&pcy;&ucy;&scy;&tcy;&icy;&mcy;&ycy;&iecy; &ocy;&tcy;&vcy;&iecy;&tcy;&ycy;:  <code>200 OK</code>  &icy;&lcy;&icy;  <code>304 Not Modified</code> .</span></p> <p><span data-i18n="e097586cf03876181dc82c085157d3b8806bb51c9cba1e1c4d8df70530d2865e/89" data-source="The returned content is a UNIX formatted text file describing each ref and its known value. The file SHOULD be sorted by name according to the C locale ordering. The file SHOULD NOT include the default ref named &lt;code&gt;HEAD&lt;/code&gt;." onmousemove="i18n(this)">&Vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&iecy;&ncy;&ncy;&ocy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &tcy;&iecy;&kcy;&scy;&tcy;&ocy;&vcy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; UNIX, &ocy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yucy;&shchcy;&icy;&jcy; &kcy;&acy;&zhcy;&dcy;&ucy;&yucy; &scy;&scy;&ycy;&lcy;&kcy;&ucy; &icy; &iecy;&iecy; &icy;&zcy;&vcy;&iecy;&scy;&tcy;&ncy;&ocy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;. &Fcy;&acy;&jcy;&lcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &bcy;&ycy;&tcy;&softcy; &ocy;&tcy;&scy;&ocy;&rcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy; &pcy;&ocy; &icy;&mcy;&iecy;&ncy;&icy; &vcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&icy;&icy; &scy; &pcy;&ocy;&rcy;&yacy;&dcy;&kcy;&ocy;&mcy; &lcy;&ocy;&kcy;&acy;&lcy;&icy; C. &Fcy;&acy;&jcy;&lcy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy; &scy;&scy;&ycy;&lcy;&kcy;&ucy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &scy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy;  <code>HEAD</code> .</span></p> <div> <div> <pre class="hljs language-ini"><span class="hljs-attr">info_refs</span>   =  *( ref_record )
<span class="hljs-attr">ref_record</span>  =  any_ref / peeled_ref</pre> </div> </div> <div> <div> <pre class="hljs language-python">any_ref     =  obj-<span class="hljs-built_in">id</span> HTAB refname LF
peeled_ref  =  obj-<span class="hljs-built_in">id</span> HTAB refname LF
 obj-<span class="hljs-built_in">id</span> HTAB refname <span class="hljs-string">&quot;^{}&quot;</span> LF</pre> </div> </div> </div> <div> <h3 class="text-body-emphasis"  id="_smart_clients"><span data-i18n="3aba8419f3b0ac6e29af5570ca619b417b865fc538e38ec25439f3e62db2469e/8a" data-source="Smart Clients" onmousemove="i18n(this)">Smart Clients</span></h3> <p><span data-i18n="2a8aa616f609a551505785444ce5017f2a9420d932d8f241fc9293cfc5896b5f/6b" data-source="HTTP clients that support the &amp;quot;smart&amp;quot; protocol (or both the &amp;quot;smart&amp;quot; and &amp;quot;dumb&amp;quot; protocols) MUST discover references by making a parameterized request for the info/refs file of the repository." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; HTTP, &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&yucy;&shchcy;&icy;&iecy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;  &quot;smart&quot;  (&icy;&lcy;&icy; &ocy;&bcy;&acy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&acy;  &quot;smart&quot;  &icy;  &quot;dumb&quot; ), &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&icy;&vcy;&acy;&tcy;&softcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &dcy;&iecy;&lcy;&acy;&yacy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&icy;&zcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&jcy; &zcy;&acy;&pcy;&rcy;&ocy;&scy; &kcy; &fcy;&acy;&jcy;&lcy;&ucy; info/refs &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;.</span></p> <p><span data-i18n="c4ce38ed9789c060d149b6fd3f8a79599190b1374a5e94fc4f037b2a45812dbe/ae" data-source="The request MUST contain exactly one query parameter, &lt;code&gt;service=$servicename&lt;/code&gt;, where &lt;code&gt;$servicename&lt;/code&gt; MUST be the service name the client wishes to contact to complete the operation. The request MUST NOT contain additional query parameters." onmousemove="i18n(this)">&Zcy;&acy;&pcy;&rcy;&ocy;&scy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&tcy;&softcy; &rcy;&ocy;&vcy;&ncy;&ocy; &ocy;&dcy;&icy;&ncy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&acy;,  <code>service=$servicename</code> , &gcy;&dcy;&iecy;  <code>$servicename</code>  &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &bcy;&ycy;&tcy;&softcy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy; &scy;&lcy;&ucy;&zhcy;&bcy;&ycy;, &kcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&jcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &zhcy;&iecy;&lcy;&acy;&iecy;&tcy; &ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&softcy;&scy;&yacy; &dcy;&lcy;&yacy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&icy;&yacy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&icy;. &Zcy;&acy;&pcy;&rcy;&ocy;&scy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&tcy;&softcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&acy;.</span></p> <div> <div> <pre class="hljs language-bash">C: GET <span class="hljs-variable">$GIT_URL</span>/info/refs?service=git-upload-pack HTTP/1.0</pre> </div> </div> <p><span data-i18n="e76d2373de77c3430d57b97a921cd9ca8154e592c199def49a531c28afeba547/96" data-source="dumb server reply:" onmousemove="i18n(this)">&tcy;&ucy;&pcy;&ocy;&jcy; &ocy;&tcy;&vcy;&iecy;&tcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy;:</span></p> <div> <div> <pre class="hljs language-makefile"><span class="hljs-section">S: 200 OK</span>
<span class="hljs-section">S:</span>
<span class="hljs-section">S: 95dcfa3633004da0049d3d0fa03f80589cbcaf31        refs/heads/maint</span>
<span class="hljs-section">S: d049f6c27a2244e12041955e262a404c7faba355        refs/heads/master</span>
<span class="hljs-section">S: 2cb58b79488a98d2721cea644875a8dd0026b115        refs/tags/v1.0</span>
<span class="hljs-section">S: a3c2e2402b99163d1d59756e5f207ae21cccba4c        refs/tags/v1.0^{}</span></pre> </div> </div> <p><span data-i18n="3f38acfbcb5c20e5ed10a03bf6ec5a1a04e9f830f8bde38f5c8ec32f2274bf7c/c2" data-source="smart server reply:" onmousemove="i18n(this)">&ucy;&mcy;&ncy;&ycy;&jcy; &ocy;&tcy;&vcy;&iecy;&tcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy;:</span></p> <div> <div> <pre class="hljs language-yaml"><span class="hljs-attr">S:</span> <span class="hljs-number">200</span> <span class="hljs-string">OK</span>
<span class="hljs-attr">S: Content-Type:</span> <span class="hljs-string">application/x-git-upload-pack-advertisement</span>
<span class="hljs-attr">S: Cache-Control:</span> <span class="hljs-literal">no</span><span class="hljs-string">-cache</span>
<span class="hljs-attr">S:</span>
<span class="hljs-attr">S:</span> <span class="hljs-string">001e#</span> <span class="hljs-string">service=git-upload-pack\n</span>
<span class="hljs-attr">S:</span> <span class="hljs-number">0000</span>
<span class="hljs-attr">S:</span> <span class="hljs-string">004895dcfa3633004da0049d3d0fa03f80589cbcaf31</span> <span class="hljs-string">refs/heads/maint\0multi_ack\n</span>
<span class="hljs-attr">S:</span> <span class="hljs-string">003fd049f6c27a2244e12041955e262a404c7faba355</span> <span class="hljs-string">refs/heads/master\n</span>
<span class="hljs-attr">S:</span> <span class="hljs-string">003c2cb58b79488a98d2721cea644875a8dd0026b115</span> <span class="hljs-string">refs/tags/v1.0\n</span>
<span class="hljs-attr">S:</span> <span class="hljs-string">003fa3c2e2402b99163d1d59756e5f207ae21cccba4c</span> <span class="hljs-string">refs/tags/v1.0^{}\n</span>
<span class="hljs-attr">S:</span> <span class="hljs-number">0000</span></pre> </div> </div> <p><span data-i18n="6b2fe813d3fab1c69d34877caeada6081558b7c4ef505fb52412090f03c9370d/bc" data-source="The client may send Extra Parameters (see &lt;a href=&quot;gitprotocol-pack&quot;&gt;gitprotocol-pack[5]&lt;/a&gt;) as a colon-separated string in the Git-Protocol HTTP header." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; (&scy;&mcy;.  <a href="gitprotocol-pack.html">gitprotocol-pack[5]</a> ) &vcy; &vcy;&icy;&dcy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;, &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ocy;&jcy; &dcy;&vcy;&ocy;&iecy;&tcy;&ocy;&chcy;&icy;&yacy;&mcy;&icy;, &vcy; HTTP-&zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&iecy; Git-Protocol.</span></p> <p><span data-i18n="ec0892494a307b2075a3d513a1ba1dfeb79cab14815c0034cc29325f1767189b/54" data-source="Uses the &lt;code&gt;--http-backend-info-refs&lt;/code&gt; option to &lt;a href=&quot;git-upload-pack&quot;&gt;git-upload-pack[1]&lt;/a&gt;." onmousemove="i18n(this)">&Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy; &ocy;&pcy;&tscy;&icy;&yucy;  <code>--http-backend-info-refs</code>  &dcy;&lcy;&yacy;  <a href="git-upload-pack.html">git-upload-pack[1]</a> .</span></p> <div> <h4 class="text-body-emphasis"  id="_dumb_server_response"><span data-i18n="5808d04c16fb0b9a18ee09e349c91701c12759a7befa6ab0cae71bad5c496100/45" data-source="Dumb Server Response" onmousemove="i18n(this)">&Tcy;&ucy;&pcy;&ocy;&jcy; &ocy;&tcy;&vcy;&iecy;&tcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy;</span></h4> <p><span data-i18n="8224b710fa3fd15b2e5d4db449cc3cfb57232d35f50d57e778db35c5facb6f52/db" data-source="Dumb servers MUST respond with the dumb server reply format." onmousemove="i18n(this)">&Gcy;&lcy;&ucy;&pcy;&ycy;&iecy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &ocy;&tcy;&vcy;&iecy;&chcy;&acy;&tcy;&softcy; &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; &ocy;&tcy;&vcy;&iecy;&tcy;&acy; &tcy;&ucy;&pcy;&ocy;&gcy;&ocy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy;.</span></p> <p><span data-i18n="98dc782a3f8020eb146acd2cca11e05084b2b28ac03777065f532b4335c0e32f/3b" data-source="See the prior section under dumb clients for a more detailed description of the dumb server response." onmousemove="i18n(this)">&Bcy;&ocy;&lcy;&iecy;&iecy; &pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ocy;&iecy; &ocy;&pcy;&icy;&scy;&acy;&ncy;&icy;&iecy; &ocy;&tcy;&vcy;&iecy;&tcy;&acy; &tcy;&ucy;&pcy;&ocy;&gcy;&ocy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy; &scy;&mcy;. &vcy; &pcy;&rcy;&iecy;&dcy;&ycy;&dcy;&ucy;&shchcy;&iecy;&mcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy;, &pcy;&ocy;&scy;&vcy;&yacy;&shchcy;&iecy;&ncy;&ncy;&ocy;&mcy; &tcy;&ucy;&pcy;&ycy;&mcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&acy;&mcy;.</span></p> </div> <div> <h4 class="text-body-emphasis"  id="_smart_server_response"><span data-i18n="a557430cda6f62a85145b7c79b9e73e9bdf13d9de0879001bc4f0c452566aab1/6f" data-source="Smart Server Response" onmousemove="i18n(this)">&Ucy;&mcy;&ncy;&ycy;&jcy; &ocy;&tcy;&vcy;&iecy;&tcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy;</span></h4> <p><span data-i18n="40e3ad29b8b74d9376e6086d6adf1d51c7383e28ee048d48653716b87190972f/d3" data-source="If the server does not recognize the requested service name, or the requested service name has been disabled by the server administrator, the server MUST respond with the &lt;code&gt;403 Forbidden&lt;/code&gt; HTTP status code." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &ncy;&iecy; &rcy;&acy;&scy;&pcy;&ocy;&zcy;&ncy;&acy;&iecy;&tcy; &zcy;&acy;&pcy;&rcy;&ocy;&shcy;&iecy;&ncy;&ncy;&ocy;&iecy; &icy;&mcy;&yacy; &scy;&lcy;&ucy;&zhcy;&bcy;&ycy; &icy;&lcy;&icy; &zcy;&acy;&pcy;&rcy;&ocy;&shcy;&iecy;&ncy;&ncy;&ocy;&iecy; &icy;&mcy;&yacy; &scy;&lcy;&ucy;&zhcy;&bcy;&ycy; &ocy;&tcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ocy; &acy;&dcy;&mcy;&icy;&ncy;&icy;&scy;&tcy;&rcy;&acy;&tcy;&ocy;&rcy;&ocy;&mcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy;, &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &ocy;&tcy;&vcy;&iecy;&tcy;&icy;&tcy;&softcy; &kcy;&ocy;&dcy;&ocy;&mcy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&yacy; HTTP  <code>403 Forbidden</code> .</span></p> <p><span data-i18n="a366ebf42388f13770f4c4fbcd5d9e86e438b272416294f6b83f3a7ceffd652c/cd" data-source="Otherwise, smart servers MUST respond with the smart server reply format for the requested service name." onmousemove="i18n(this)">&Vcy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &icy;&ncy;&tcy;&iecy;&lcy;&lcy;&iecy;&kcy;&tcy;&ucy;&acy;&lcy;&softcy;&ncy;&ycy;&iecy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &ocy;&tcy;&vcy;&iecy;&tcy;&icy;&tcy;&softcy; &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; &ocy;&tcy;&vcy;&iecy;&tcy;&acy; &icy;&ncy;&tcy;&iecy;&lcy;&lcy;&iecy;&kcy;&tcy;&ucy;&acy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy; &dcy;&lcy;&yacy; &zcy;&acy;&pcy;&rcy;&ocy;&shcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &icy;&mcy;&iecy;&ncy;&icy; &scy;&lcy;&ucy;&zhcy;&bcy;&ycy;.</span></p> <p><span data-i18n="bd0200d578da60a255cfa07dbbe7138b3f10d1722361367104a28b1c95d40fef/99" data-source="Cache-Control headers SHOULD be used to disable caching of the returned entity." onmousemove="i18n(this)">&Zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy; Cache-Control &Scy;&Lcy;&IEcy;&Dcy;&Ucy;&IEcy;&Tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &ocy;&tcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&yacy; &kcy;&ecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&acy;&iecy;&mcy;&ocy;&gcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;.</span></p> <p><span data-i18n="7df3d1cc6fe95f521fd192c8f800fabc5d1552a47f6431fee0edee0a02074623/35" data-source="The Content-Type MUST be &lt;code&gt;application/x-$servicename-advertisement&lt;/code&gt;. Clients SHOULD fall back to the dumb protocol if another content type is returned. When falling back to the dumb protocol clients SHOULD NOT make an additional request to &lt;code&gt;$GIT_URL/info/refs&lt;/code&gt;, but instead SHOULD use the response already in hand. Clients MUST NOT continue if they do not support the dumb protocol." onmousemove="i18n(this)">&Tcy;&icy;&pcy; &kcy;&ocy;&ncy;&tcy;&iecy;&ncy;&tcy;&acy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &bcy;&ycy;&tcy;&softcy;  <code>application/x-$servicename-advertisement</code>  . &Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &vcy;&iecy;&rcy;&ncy;&ucy;&tcy;&softcy;&scy;&yacy; &kcy; &tcy;&ucy;&pcy;&ocy;&mcy;&ucy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&ucy;, &iecy;&scy;&lcy;&icy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&acy;&iecy;&tcy;&scy;&yacy; &dcy;&rcy;&ucy;&gcy;&ocy;&jcy; &tcy;&icy;&pcy; &kcy;&ocy;&ncy;&tcy;&iecy;&ncy;&tcy;&acy;. &Pcy;&rcy;&icy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&tcy;&iecy; &kcy; &tcy;&ucy;&pcy;&ocy;&mcy;&ucy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&ucy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &dcy;&iecy;&lcy;&acy;&tcy;&softcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&jcy; &zcy;&acy;&pcy;&rcy;&ocy;&scy; &kcy;  <code>$GIT_URL/info/refs</code> , &acy; &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &ecy;&tcy;&ocy;&gcy;&ocy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &ucy;&zhcy;&iecy; &icy;&mcy;&iecy;&yucy;&shchcy;&icy;&jcy;&scy;&yacy; &ocy;&tcy;&vcy;&iecy;&tcy;. &Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &pcy;&rcy;&ocy;&dcy;&ocy;&lcy;&zhcy;&acy;&tcy;&softcy; &rcy;&acy;&bcy;&ocy;&tcy;&ucy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy;&icy; &ncy;&iecy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&yucy;&tcy; &tcy;&ucy;&pcy;&ocy;&jcy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;.</span></p> <p><span data-i18n="f8eedf7c3e0da0ebe8b27de480c6d21d03c9e91f2ec852374926748cea982b4b/f8" data-source="Clients MUST validate the status code is either &lt;code&gt;200 OK&lt;/code&gt; or &lt;code&gt;304 Not Modified&lt;/code&gt;." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &pcy;&ocy;&dcy;&tcy;&vcy;&iecy;&rcy;&dcy;&icy;&tcy;&softcy;, &chcy;&tcy;&ocy; &kcy;&ocy;&dcy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&yacy; &mdash;  <code>200 OK</code>  &icy;&lcy;&icy;  <code>304 Not Modified</code> .</span></p> <p><span data-i18n="1bb6650188d53011053672921e9db74423854f0906125d0a9a8ca951f4127eff/a0" data-source="Clients MUST validate the first five bytes of the response entity matches the regex &lt;code&gt;^[0-9a-f]{4}#&lt;/code&gt;. If this test fails, clients MUST NOT continue." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&icy;&tcy;&softcy;, &chcy;&tcy;&ocy; &pcy;&iecy;&rcy;&vcy;&ycy;&iecy; &pcy;&yacy;&tcy;&softcy; &bcy;&acy;&jcy;&tcy;&ocy;&vcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy; &ocy;&tcy;&vcy;&iecy;&tcy;&acy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy; &rcy;&iecy;&gcy;&ucy;&lcy;&yacy;&rcy;&ncy;&ocy;&mcy;&ucy; &vcy;&ycy;&rcy;&acy;&zhcy;&iecy;&ncy;&icy;&yucy;  <code>^[0-9a-f]{4}#</code> . &IEcy;&scy;&lcy;&icy; &ecy;&tcy;&ocy;&tcy; &tcy;&iecy;&scy;&tcy; &ncy;&iecy; &pcy;&rcy;&ocy;&jcy;&dcy;&iecy;&ncy;, &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &pcy;&rcy;&ocy;&dcy;&ocy;&lcy;&zhcy;&acy;&tcy;&softcy; &rcy;&acy;&bcy;&ocy;&tcy;&ucy;.</span></p> <p><span data-i18n="e8d04f6b118a71ff3d5ffef9e462bffc7fd2c62ebcdd792a476d1ebe0976cd06/e1" data-source="Clients MUST parse the entire response as a sequence of pkt-line records." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &acy;&ncy;&acy;&lcy;&icy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &vcy;&iecy;&scy;&softcy; &ocy;&tcy;&vcy;&iecy;&tcy; &kcy;&acy;&kcy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&scy;&tcy;&softcy; &zcy;&acy;&pcy;&icy;&scy;&iecy;&jcy; pkt-line.</span></p> <p><span data-i18n="435b73d22570f733dbfe5afe658472ae149275f529a98fff1cc1cd802351790e/2d" data-source="Clients MUST verify the first pkt-line is &lt;code&gt;# service=$servicename&lt;/code&gt;. Servers MUST set $servicename to be the request parameter value. Servers SHOULD include an LF at the end of this line. Clients MUST ignore an LF at the end of the line." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&icy;&tcy;&softcy;, &chcy;&tcy;&ocy; &pcy;&iecy;&rcy;&vcy;&acy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy;&acy; pkt &mdash;  <code># service=$servicename</code> . &Scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; $servicename &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&acy;. &Scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy;&mcy; &Scy;&Lcy;&IEcy;&Dcy;&Ucy;&IEcy;&Tcy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy; LF &vcy; &kcy;&ocy;&ncy;&tscy;&iecy; &ecy;&tcy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;. &Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; LF &vcy; &kcy;&ocy;&ncy;&tscy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;.</span></p> <p><span data-i18n="19806fc302cb7fb0e7ec7361f770e51e75d64992df7e94ade2afb69ab9aba708/99" data-source="Servers MUST terminate the response with the magic &lt;code&gt;0000&lt;/code&gt; end pkt-line marker." onmousemove="i18n(this)">&Scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&icy;&tcy;&softcy; &ocy;&tcy;&vcy;&iecy;&tcy; &mcy;&acy;&gcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&mcy; &mcy;&acy;&rcy;&kcy;&iecy;&rcy;&ocy;&mcy; &kcy;&ocy;&ncy;&tscy;&acy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; pkt  <code>0000</code> .</span></p> <p><span data-i18n="6cb071adb893a3e460106817192e95308adb78eea5a89f676c93dd38e5b753c7/f9" data-source="The returned response is a pkt-line stream describing each ref and its known value. The stream SHOULD be sorted by name according to the C locale ordering. The stream SHOULD include the default ref named &lt;code&gt;HEAD&lt;/code&gt; as the first ref. The stream MUST include capability declarations behind a NUL on the first ref." onmousemove="i18n(this)">&Vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&iecy;&ncy;&ncy;&ycy;&jcy; &ocy;&tcy;&vcy;&iecy;&tcy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &pcy;&ocy;&tcy;&ocy;&kcy; &scy;&tcy;&rcy;&ocy;&kcy; pkt, &ocy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yucy;&shchcy;&icy;&jcy; &kcy;&acy;&zhcy;&dcy;&ucy;&yucy; &scy;&scy;&ycy;&lcy;&kcy;&ucy; &icy; &iecy;&iecy; &icy;&zcy;&vcy;&iecy;&scy;&tcy;&ncy;&ocy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;. &Pcy;&ocy;&tcy;&ocy;&kcy; &Scy;&Lcy;&IEcy;&Dcy;&Ucy;&IEcy;&Tcy; &scy;&ocy;&rcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &pcy;&ocy; &icy;&mcy;&iecy;&ncy;&icy; &vcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&icy;&icy; &scy; &pcy;&ocy;&rcy;&yacy;&dcy;&kcy;&ocy;&mcy; &lcy;&ocy;&kcy;&acy;&lcy;&icy; C. &Pcy;&ocy;&tcy;&ocy;&kcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy; &scy;&scy;&ycy;&lcy;&kcy;&ucy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &scy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy;  <code>HEAD</code>  &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &pcy;&iecy;&rcy;&vcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;. &Pcy;&ocy;&tcy;&ocy;&kcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy; &ocy;&bcy;&hardcy;&yacy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&iecy;&jcy; &pcy;&ocy;&scy;&lcy;&iecy; NUL &vcy; &pcy;&iecy;&rcy;&vcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&iecy;.</span></p> <p><span data-i18n="bc870e6a71823148fa4a41a4c6c4fe0e6c2a845e5806c4593c0d7a1e2904ed6b/22" data-source="The returned response contains &amp;quot;version 1&amp;quot; if &amp;quot;version=1&amp;quot; was sent as an Extra Parameter." onmousemove="i18n(this)">&Vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&iecy;&ncy;&ncy;&ycy;&jcy; &ocy;&tcy;&vcy;&iecy;&tcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&tcy;  &quot;version 1&quot; , &iecy;&scy;&lcy;&icy;  &quot;version=1&quot;  &bcy;&ycy;&lcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy;.</span></p> <div> <div> <pre class="hljs language-makefile">smart_reply     =  PKT-LINE(<span class="hljs-string">&quot;# service=$servicename&quot;</span> LF)
     <span class="hljs-string">&quot;0000&quot;</span>
     *1(<span class="hljs-string">&quot;version 1&quot;</span>)
     ref_list
     <span class="hljs-string">&quot;0000&quot;</span>
ref_list        =  empty_list / non_empty_list</pre> </div> </div> <div> <div> <pre class="hljs language-ini"><span class="hljs-attr">empty_list</span>      =  PKT-LINE(zero-id SP <span class="hljs-string">&quot;capabilities^{}&quot;</span> NUL cap-list LF)</pre> </div> </div> <div> <div> <pre class="hljs language-makefile">non_empty_list  =  PKT-LINE(obj-id SP name NUL cap_list LF)
     *ref_record</pre> </div> </div> <div> <div> <pre class="hljs language-ini"><span class="hljs-attr">cap-list</span>        =  capability *(SP capability)
<span class="hljs-attr">capability</span>      =  <span class="hljs-number">1</span>*(LC_ALPHA / DIGIT / <span class="hljs-string">&quot;-&quot;</span> / <span class="hljs-string">&quot;_&quot;</span>)
<span class="hljs-attr">LC_ALPHA</span>        =  %x61-<span class="hljs-number">7</span>A</pre> </div> </div> <div> <div> <pre class="hljs language-makefile">ref_record      =  any_ref / peeled_ref
any_ref         =  PKT-LINE(obj-id SP name LF)
peeled_ref      =  PKT-LINE(obj-id SP name LF)
     PKT-LINE(obj-id SP name <span class="hljs-string">&quot;^{}&quot;</span> LF</pre> </div> </div> </div> </div> </div> <h2 class="text-body-emphasis"  id="_smart_service_git_upload_pack"><span data-i18n="6d3f59b9385667a27ab6411a61808266fe8ad10e1fc7d978987b86968c4910e4/91" data-source="Smart service git-upload-pack" onmousemove="i18n(this)">&Ucy;&mcy;&ncy;&ycy;&jcy; &scy;&iecy;&rcy;&vcy;&icy;&scy; git-upload-pack</span></h2> <div> <p><span data-i18n="6473ba209141e0d729229e8dbc2c4ce8206ed1fa688d9fa5b4fff3aae1c9673c/db" data-source="This service reads from the repository pointed to by &lt;code&gt;$GIT_URL&lt;/code&gt;." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &scy;&lcy;&ucy;&zhcy;&bcy;&acy; &chcy;&icy;&tcy;&acy;&iecy;&tcy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &icy;&zcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;, &ncy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;  <code>$GIT_URL</code> .</span></p> <p><span data-i18n="9c3094ee9878f2cb39e1c860a418e8615e0869dc28a607483ab555a8760b9ce4/b8" data-source="Clients MUST first perform ref discovery with &lt;code&gt;$GIT_URL/info/refs?service=git-upload-pack&lt;/code&gt;." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &scy;&ncy;&acy;&chcy;&acy;&lcy;&acy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&softcy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>$GIT_URL/info/refs?service=git-upload-pack</code> .</span></p> <div> <div> <pre class="hljs language-yaml"><span class="hljs-attr">C:</span> <span class="hljs-string">POST</span> <span class="hljs-string">$GIT_URL/git-upload-pack</span> <span class="hljs-string">HTTP/1.0</span>
<span class="hljs-attr">C: Content-Type:</span> <span class="hljs-string">application/x-git-upload-pack-request</span>
<span class="hljs-attr">C:</span>
<span class="hljs-attr">C:</span> <span class="hljs-string">0032want</span> <span class="hljs-string">0a53e9ddeaddad63ad106860237bbf53411d11a7\n</span>
<span class="hljs-attr">C:</span> <span class="hljs-string">0032have</span> <span class="hljs-string">441b40d833fdfa93eb2908e52742248faf0ee993\n</span>
<span class="hljs-attr">C:</span> <span class="hljs-number">0000</span></pre> </div> </div> <div> <div> <pre class="hljs language-vbnet"><span class="hljs-symbol">S:</span> <span class="hljs-number">200</span> OK
<span class="hljs-symbol">S:</span> Content-Type: application/x-git-upload-pack-result
<span class="hljs-symbol">S:</span> Cache-Control: no-cache
<span class="hljs-symbol">S:</span>
<span class="hljs-symbol">S:</span> ....ACK %s, <span class="hljs-keyword">continue</span>
<span class="hljs-symbol">S:</span> ....NAK</pre> </div> </div> <p><span data-i18n="e12796ff5524a08d616847a62674bdf5e01e2f71d0d9780251d2f963e273299b/0f" data-source="Clients MUST NOT reuse or revalidate a cached response. Servers MUST include sufficient Cache-Control headers to prevent caching of the response." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &icy;&lcy;&icy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&yacy;&tcy;&softcy; &kcy;&ecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&jcy; &ocy;&tcy;&vcy;&iecy;&tcy;. &Scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy; &dcy;&ocy;&scy;&tcy;&acy;&tcy;&ocy;&chcy;&ncy;&ocy;&iecy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&ocy;&vcy; Cache-Control, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&tcy;&icy;&tcy;&softcy; &kcy;&iecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &ocy;&tcy;&vcy;&iecy;&tcy;&acy;.</span></p> <p><span data-i18n="72a38b3593a9bf96b0af30af8de9733a55ea43d4ef24f723149a99b286592d21/28" data-source="Servers SHOULD support all capabilities defined here." onmousemove="i18n(this)">&Scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&tcy;&softcy; &vcy;&scy;&iecy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&icy;, &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &zcy;&dcy;&iecy;&scy;&softcy;.</span></p> <p><span data-i18n="6b3bdf19d7e95c2dcdede98cf5b7f8ab5313d1f31551ed2d045b64f5ed14f13e/a3" data-source="Clients MUST send at least one &amp;quot;want&amp;quot; command in the request body. Clients MUST NOT reference an id in a &amp;quot;want&amp;quot; command which did not appear in the response obtained through ref discovery unless the server advertises capability &lt;code&gt;allow-tip-sha1-in-want&lt;/code&gt; or &lt;code&gt;allow-reachable-sha1-in-want&lt;/code&gt;." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy; &khcy;&ocy;&tcy;&yacy; &bcy;&ycy; &ocy;&dcy;&ncy;&ucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;  &quot;want&quot;  &vcy; &tcy;&iecy;&lcy;&iecy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&acy;. &Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &scy;&scy;&ycy;&lcy;&acy;&tcy;&softcy;&scy;&yacy; &ncy;&acy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&iecy;  &quot;want&quot; , &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &ncy;&iecy; &pcy;&ocy;&yacy;&vcy;&icy;&lcy;&scy;&yacy; &vcy; &ocy;&tcy;&vcy;&iecy;&tcy;&iecy;, &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&ncy;&ocy;&mcy; &pcy;&ocy;&scy;&rcy;&iecy;&dcy;&scy;&tcy;&vcy;&ocy;&mcy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;, &iecy;&scy;&lcy;&icy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &ncy;&iecy; &ocy;&bcy;&hardcy;&yacy;&vcy;&lcy;&yacy;&iecy;&tcy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy;  <code>allow-tip-sha1-in-want</code>  &icy;&lcy;&icy;  <code>allow-reachable-sha1-in-want</code> .</span></p> <div> <div> <pre class="hljs language-makefile">compute_request   =  want_list
       have_list
       request_end
request_end       =  <span class="hljs-string">&quot;0000&quot;</span> / <span class="hljs-string">&quot;done&quot;</span></pre> </div> </div> <div> <div> <pre class="hljs language-makefile">want_list         =  PKT-LINE(want SP cap_list LF)
       *(want_pkt)
want_pkt          =  PKT-LINE(want LF)
want              =  <span class="hljs-string">&quot;want&quot;</span> SP id
cap_list          =  capability *(SP capability)</pre> </div> </div> <div> <div> <pre class="hljs language-ini"><span class="hljs-attr">have_list</span>         =  *PKT-LINE(<span class="hljs-string">&quot;have&quot;</span> SP id LF)</pre> </div> </div> <p><span data-i18n="7852e8eb86a015a77dc093cd4dfcda7e66647547c067b18167d0bcb80957f017/a0" data-source="TODO: Document this further." onmousemove="i18n(this)">&Zcy;&Acy;&Dcy;&Acy;&CHcy;&Acy;: &Zcy;&acy;&dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&icy;&rcy;&ucy;&jcy;&tcy;&iecy; &ecy;&tcy;&ocy; &dcy;&acy;&lcy;&softcy;&shcy;&iecy;.</span></p> <div> <h3 class="text-body-emphasis"  id="_the_negotiation_algorithm"><span data-i18n="170654ff47323236b00583941a4e5d0e76db2ce3d9305229d81ba7e749b84faa/aa" data-source="The Negotiation Algorithm" onmousemove="i18n(this)">&Acy;&lcy;&gcy;&ocy;&rcy;&icy;&tcy;&mcy; &pcy;&iecy;&rcy;&iecy;&gcy;&ocy;&vcy;&ocy;&rcy;&ocy;&vcy;</span></h3> <p><span data-i18n="b1e8a4404f8acc1ab28883140957e613737788942124b246ece28a7ed5b443ea/c2" data-source="The computation to select the minimal pack proceeds as follows (C = client, S = server):" onmousemove="i18n(this)">&Vcy;&ycy;&chcy;&icy;&scy;&lcy;&iecy;&ncy;&icy;&iecy; &dcy;&lcy;&yacy; &vcy;&ycy;&bcy;&ocy;&rcy;&acy; &mcy;&icy;&ncy;&icy;&mcy;&acy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &pcy;&acy;&kcy;&iecy;&tcy;&acy; &pcy;&rcy;&ocy;&icy;&scy;&khcy;&ocy;&dcy;&icy;&tcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy; (C = &kcy;&lcy;&icy;&iecy;&ncy;&tcy;, S = &scy;&iecy;&rcy;&vcy;&iecy;&rcy;):</span></p> <p><code>init step:</code></p> <p><span data-i18n="391d72fde46d9b8c80308356f28027a5dcfd0d43cbbcfb620e0d191a205e8f77/3d" data-source="C: Use ref discovery to obtain the advertised refs." onmousemove="i18n(this)">C: &Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &rcy;&iecy;&kcy;&lcy;&acy;&mcy;&icy;&rcy;&ucy;&iecy;&mcy;&ycy;&khcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;.</span></p> <p><span data-i18n="5f9ad24b29c4e29e88ecd4944312c47c6b05ad1535579ccfd64ff7d0b2263947/57" data-source="C: Place any object seen into set &lt;code&gt;advertised&lt;/code&gt;." onmousemove="i18n(this)">C: &Pcy;&ocy;&mcy;&iecy;&scy;&tcy;&icy;&tcy;&iecy; &lcy;&yucy;&bcy;&ocy;&jcy; &ucy;&vcy;&icy;&dcy;&iecy;&ncy;&ncy;&ycy;&jcy; &pcy;&rcy;&iecy;&dcy;&mcy;&iecy;&tcy; &vcy; &ncy;&acy;&bcy;&ocy;&rcy;  <code>advertised</code> .</span></p> <p><span data-i18n="41e6df15a9b8b6895ac7367ee5792c95874ab0b46790acb6bbcb5674b3b9ed24/93" data-source="C: Build an empty set, &lt;code&gt;common&lt;/code&gt;, to hold the objects that are later determined to be on both ends." onmousemove="i18n(this)">C: &Scy;&ocy;&zcy;&dcy;&acy;&jcy;&tcy;&iecy; &pcy;&ucy;&scy;&tcy;&ocy;&jcy; &ncy;&acy;&bcy;&ocy;&rcy;  <code>common</code>  &dcy;&lcy;&yacy; &khcy;&rcy;&acy;&ncy;&iecy;&ncy;&icy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &pcy;&ocy;&zcy;&zhcy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ycy; &kcy;&acy;&kcy; &ncy;&acy;&khcy;&ocy;&dcy;&yacy;&shchcy;&icy;&iecy;&scy;&yacy; &ncy;&acy; &ocy;&bcy;&ocy;&icy;&khcy; &kcy;&ocy;&ncy;&tscy;&acy;&khcy;.</span></p> <p><span data-i18n="c97f9fe34f0d1cfc90f424a4f0c8a1b06abb3db8cdd9929ce83c5bf6eab91118/e4" data-source="C: Build a set, &lt;code&gt;want&lt;/code&gt;, of the objects from &lt;code&gt;advertised&lt;/code&gt; that the client wants to fetch, based on what it saw during ref discovery." onmousemove="i18n(this)">C: &Scy;&ocy;&zcy;&dcy;&acy;&jcy;&tcy;&iecy; &ncy;&acy;&bcy;&ocy;&rcy;  <code>want</code>  &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &icy;&zcy;  <code>advertised</code> , &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &khcy;&ocy;&chcy;&iecy;&tcy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&tcy;&softcy;, &ncy;&acy; &ocy;&scy;&ncy;&ocy;&vcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy; &ocy;&ncy; &ucy;&vcy;&icy;&dcy;&iecy;&lcy; &vcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;.</span></p> <p><span data-i18n="bc2bcfa47cc16940029b6f3b6096ee6d6f573ea0440e3af7a9f9a83afd890dd7/48" data-source="C: Start a queue, &lt;code&gt;c_pending&lt;/code&gt;, ordered by commit time (popping newest first). Add all client refs. When a commit is popped from the queue its parents SHOULD be automatically inserted back. Commits MUST only enter the queue once." onmousemove="i18n(this)">C: &Zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&softcy; &ocy;&chcy;&iecy;&rcy;&iecy;&dcy;&softcy;  <code>c_pending</code>  &vcy; &pcy;&ocy;&rcy;&yacy;&dcy;&kcy;&iecy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&icy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; (&scy;&ncy;&acy;&chcy;&acy;&lcy;&acy; &pcy;&ocy;&yacy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &scy;&acy;&mcy;&ycy;&iecy; &ncy;&ocy;&vcy;&ycy;&iecy;). &Dcy;&ocy;&bcy;&acy;&vcy;&softcy;&tcy;&iecy; &vcy;&scy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &ncy;&acy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ocy;&vcy;. &Kcy;&ocy;&gcy;&dcy;&acy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy; &icy;&zcy;&vcy;&lcy;&iecy;&kcy;&acy;&iecy;&tcy;&scy;&yacy; &icy;&zcy; &ocy;&chcy;&iecy;&rcy;&iecy;&dcy;&icy;, &iecy;&gcy;&ocy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&icy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &bcy;&ycy;&tcy;&softcy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy; &vcy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&ycy; &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ocy;. &Kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &vcy;&khcy;&ocy;&dcy;&icy;&tcy;&softcy; &vcy; &ocy;&chcy;&iecy;&rcy;&iecy;&dcy;&softcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ocy;&dcy;&icy;&ncy; &rcy;&acy;&zcy;.</span></p> <p><code>one compute step:</code></p> <p><span data-i18n="6f2defc6a6eea3596df9b40ee77a42226eff26b59921642f2f7274d00f19d2d4/05" data-source="C: Send one &lt;code&gt;$GIT_URL/git-upload-pack&lt;/code&gt; request:" onmousemove="i18n(this)">C: &Ocy;&tcy;&pcy;&rcy;&acy;&vcy;&softcy;&tcy;&iecy; &ocy;&dcy;&icy;&ncy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;  <code>$GIT_URL/git-upload-pack</code> :</span></p> <div> <div> <pre class="hljs language-yaml"><span class="hljs-attr">C:</span> <span class="hljs-string">0032want</span> <span class="hljs-string">&lt;want</span> <span class="hljs-comment">#1&gt;...............................</span>
<span class="hljs-attr">C:</span> <span class="hljs-string">0032want</span> <span class="hljs-string">&lt;want</span> <span class="hljs-comment">#2&gt;...............................</span>
<span class="hljs-string">....</span>
<span class="hljs-attr">C:</span> <span class="hljs-string">0032have</span> <span class="hljs-string">&lt;common</span> <span class="hljs-comment">#1&gt;.............................</span>
<span class="hljs-attr">C:</span> <span class="hljs-string">0032have</span> <span class="hljs-string">&lt;common</span> <span class="hljs-comment">#2&gt;.............................</span>
<span class="hljs-string">....</span>
<span class="hljs-attr">C:</span> <span class="hljs-string">0032have</span> <span class="hljs-string">&lt;have</span> <span class="hljs-comment">#1&gt;...............................</span>
<span class="hljs-attr">C:</span> <span class="hljs-string">0032have</span> <span class="hljs-string">&lt;have</span> <span class="hljs-comment">#2&gt;...............................</span>
<span class="hljs-string">....</span>
<span class="hljs-attr">C:</span> <span class="hljs-number">0000</span></pre> </div> </div> <p><span data-i18n="ce5c613cf86dfa979ff740b0ce647b7823f0a41dbab236ab5f63b18512d37f14/1f" data-source="The stream is organized into &amp;quot;commands&amp;quot;, with each command appearing by itself in a pkt-line. Within a command line, the text leading up to the first space is the command name, and the remainder of the line to the first LF is the value. Command lines are terminated with an LF as the last byte of the pkt-line value." onmousemove="i18n(this)">&Pcy;&ocy;&tcy;&ocy;&kcy; &ocy;&rcy;&gcy;&acy;&ncy;&icy;&zcy;&ocy;&vcy;&acy;&ncy; &vcy;  &quot;commands&quot; , &gcy;&dcy;&iecy; &kcy;&acy;&zhcy;&dcy;&acy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&iecy;&tcy;&scy;&yacy; &ocy;&tcy;&dcy;&iecy;&lcy;&softcy;&ncy;&ocy; &vcy; &scy;&tcy;&rcy;&ocy;&kcy;&iecy; pkt. &Vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&iecy; &tcy;&iecy;&kcy;&scy;&tcy; &dcy;&ocy; &pcy;&iecy;&rcy;&vcy;&ocy;&gcy;&ocy; &pcy;&rcy;&ocy;&bcy;&iecy;&lcy;&acy; &mdash; &ecy;&tcy;&ocy; &icy;&mcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;, &acy; &ocy;&scy;&tcy;&acy;&vcy;&shcy;&acy;&yacy;&scy;&yacy; &chcy;&acy;&scy;&tcy;&softcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &dcy;&ocy; &pcy;&iecy;&rcy;&vcy;&ocy;&gcy;&ocy; LF &mdash; &ecy;&tcy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;. &Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ycy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&yucy;&tcy;&scy;&yacy; LF &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&iecy;&gcy;&ocy; &bcy;&acy;&jcy;&tcy;&acy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; pkt-line.</span></p> <p><span data-i18n="ab539e191c34fd65c54a1b52dbd974a03b1157a1c8c726dafbbf26bd4fc0b954/af" data-source="Commands MUST appear in the following order, if they appear at all in the request stream:" onmousemove="i18n(this)">&Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &pcy;&ocy;&yacy;&vcy;&lcy;&yacy;&tcy;&softcy;&scy;&yacy; &vcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&mcy; &pcy;&ocy;&rcy;&yacy;&dcy;&kcy;&iecy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy;&icy; &vcy;&ocy;&ocy;&bcy;&shchcy;&iecy; &pcy;&ocy;&yacy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &vcy; &pcy;&ocy;&tcy;&ocy;&kcy;&iecy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&ocy;&vcy;:</span></p> <div> <ul> <li> <p><span data-i18n="a8fe603a03926d2cd71f1e11363b7448ff95812568cb6a89da1445a36f4abecf/a8" data-source="&amp;quot;want&amp;quot;" onmousemove="i18n(this)">&quot;want&quot;</span></p> </li> <li> <p><span data-i18n="834cb4e4c65875823497517e9ef45e6aeb75190d39936bb85b8a2c44a92fbbff/71" data-source="&amp;quot;have&amp;quot;" onmousemove="i18n(this)">&quot;have&quot;</span></p> </li> </ul> </div> <p><span data-i18n="5ed00160f962c14835e4553de40636a8d28308ce110783b8f6b005ab512fc096/7e" data-source="The stream is terminated by a pkt-line flush (&lt;code&gt;0000&lt;/code&gt;)." onmousemove="i18n(this)">&Pcy;&ocy;&tcy;&ocy;&kcy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&iecy;&tcy;&scy;&yacy; &scy;&bcy;&rcy;&ocy;&scy;&ocy;&mcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; pkt ( <code>0000</code> ).</span></p> <p><span data-i18n="fc5311836d9d05716978b82b9a79639aba5fba893b915d293ee3313012fdd173/b7" data-source="A single &amp;quot;want&amp;quot; or &amp;quot;have&amp;quot; command MUST have one hex formatted object name as its value. Multiple object names MUST be sent by sending multiple commands. Object names MUST be given using the object format negotiated through the &lt;code&gt;object-format&lt;/code&gt; capability (default SHA-1)." onmousemove="i18n(this)">&Ocy;&dcy;&ncy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  &quot;want&quot;  &icy;&lcy;&icy;  &quot;have&quot;  &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Acy; &icy;&mcy;&iecy;&tcy;&softcy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &ocy;&dcy;&ncy;&ocy; &icy;&mcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy; &vcy; &shcy;&iecy;&scy;&tcy;&ncy;&acy;&dcy;&tscy;&acy;&tcy;&iecy;&rcy;&icy;&chcy;&ncy;&ocy;&mcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy;. &Ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &icy;&mcy;&iecy;&ncy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &bcy;&ycy;&tcy;&softcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ycy; &pcy;&ucy;&tcy;&iecy;&mcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&icy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&icy;&khcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;. &Icy;&mcy;&iecy;&ncy;&acy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &zcy;&acy;&dcy;&acy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &scy;&ocy;&gcy;&lcy;&acy;&scy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy;&mcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&icy;  <code>object-format</code>  (SHA-1 &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;).</span></p> <p><span data-i18n="76f27ce415263a721aebb480fea0dd0ab83d16e4e384b0e16aa348439590e53b/db" data-source="The &lt;code&gt;have&lt;/code&gt; list is created by popping the first 32 commits from &lt;code&gt;c_pending&lt;/code&gt;. Fewer can be supplied if &lt;code&gt;c_pending&lt;/code&gt; empties." onmousemove="i18n(this)">&Scy;&pcy;&icy;&scy;&ocy;&kcy;  <code>have</code>  &scy;&ocy;&zcy;&dcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&ucy;&tcy;&iecy;&mcy; &icy;&zcy;&vcy;&lcy;&iecy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&iecy;&rcy;&vcy;&ycy;&khcy; 32 &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy; &icy;&zcy;  <code>c_pending</code> . &Mcy;&iecy;&ncy;&softcy;&shcy;&iecy;&iecy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &pcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&ocy;, &iecy;&scy;&lcy;&icy;  <code>c_pending</code>  &ocy;&pcy;&ocy;&rcy;&ocy;&zhcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy;.</span></p> <p><span data-i18n="5065b8263e3323db5867aad9707fe9816ddf0af231fc49e4b4a03338f5e55409/7a" data-source="If the client has sent 256 &amp;quot;have&amp;quot; commits and has not yet received one of those back from &lt;code&gt;s_common&lt;/code&gt;, or the client has emptied &lt;code&gt;c_pending&lt;/code&gt; it SHOULD include a &amp;quot;done&amp;quot; command to let the server know it won&amp;rsquo;t proceed:" onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&lcy; 256 &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;  &quot;have&quot;  &icy; &iecy;&shchcy;&iecy; &ncy;&iecy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&lcy; &ncy;&icy; &ocy;&dcy;&ncy;&ocy;&gcy;&ocy; &icy;&zcy; &ncy;&icy;&khcy; &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ocy; &ocy;&tcy;  <code>s_common</code>  &icy;&lcy;&icy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ocy;&chcy;&icy;&scy;&tcy;&icy;&lcy;  <code>c_pending</code> , &iecy;&mcy;&ucy; &Scy;&Lcy;&IEcy;&Dcy;&Ucy;&IEcy;&Tcy; &vcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&softcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;  &quot;done&quot; , &chcy;&tcy;&ocy;&bcy;&ycy; &scy;&ocy;&ocy;&bcy;&shchcy;&icy;&tcy;&softcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ucy;, &chcy;&tcy;&ocy; &ocy;&ncy; &ncy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&rcy;&ocy;&dcy;&ocy;&lcy;&zhcy;&iecy;&ncy;:</span></p> <div> <div> <pre class="hljs language-makefile"><span class="hljs-section">C: 0009done</span></pre> </div> </div> <p><span data-i18n="d328666b2e7a6817e7be383a2682cca132b1d866896b94bbb6ca21528d9b9d8e/5f" data-source="S: Parse the git-upload-pack request:" onmousemove="i18n(this)">S: &Rcy;&acy;&zcy;&bcy;&iecy;&rcy;&icy;&tcy;&iecy; &zcy;&acy;&pcy;&rcy;&ocy;&scy; git-upload-pack:</span></p> <p><span data-i18n="7751ede04238f9275259867cca7154088833795a2394c7bafb6dbb689ede7bf5/be" data-source="Verify all objects in &lt;code&gt;want&lt;/code&gt; are directly reachable from refs." onmousemove="i18n(this)">&Ucy;&bcy;&iecy;&dcy;&icy;&tcy;&iecy;&scy;&softcy;, &chcy;&tcy;&ocy; &vcy;&scy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy; &vcy;  <code>want</code>  &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy; &ncy;&acy;&pcy;&rcy;&yacy;&mcy;&ucy;&yucy; &pcy;&ocy; &scy;&scy;&ycy;&lcy;&kcy;&acy;&mcy;.</span></p> <p><span data-i18n="e0d718dbb7de2de4352ac0e37ed4726b270842ca92270565d64ceaf1fd613018/0e" data-source="The server MAY walk backwards through history or through the reflog to permit slightly stale requests." onmousemove="i18n(this)">&Scy;&iecy;&rcy;&vcy;&iecy;&rcy; &Mcy;&Ocy;&ZHcy;&IEcy;&Tcy; &pcy;&rcy;&ocy;&jcy;&tcy;&icy; &ncy;&acy;&zcy;&acy;&dcy; &pcy;&ocy; &icy;&scy;&tcy;&ocy;&rcy;&icy;&icy; &icy;&lcy;&icy; &pcy;&ocy; &zhcy;&ucy;&rcy;&ncy;&acy;&lcy;&ucy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&jcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&icy;&tcy;&softcy; &scy;&lcy;&iecy;&gcy;&kcy;&acy; &ucy;&scy;&tcy;&acy;&rcy;&iecy;&vcy;&shcy;&icy;&iecy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&ycy;.</span></p> <p><span data-i18n="a7e157f89bdd0ac76ec605bb9884fd68e5f785e2e49b16334efb97e9185916ae/a6" data-source="If no &amp;quot;want&amp;quot; objects are received, send an error: TODO: Define error if no &amp;quot;want&amp;quot; lines are requested." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy;  &quot;want&quot;  &ncy;&iecy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&ycy;, &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&softcy;&tcy;&iecy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &ocy;&bcy; &ocy;&shcy;&icy;&bcy;&kcy;&iecy;: TODO: &Ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&icy;&tcy;&softcy; &ocy;&shcy;&icy;&bcy;&kcy;&ucy;, &iecy;&scy;&lcy;&icy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;  &quot;want&quot;  &ncy;&iecy; &zcy;&acy;&pcy;&rcy;&ocy;&shcy;&iecy;&ncy;&ycy;.</span></p> <p><span data-i18n="5364fdb887ede25d6680a2e1d8cbfe6a316082cb170a103551a7638b64700bef/d6" data-source="If any &amp;quot;want&amp;quot; object is not reachable, send an error: TODO: Define error if an invalid &amp;quot;want&amp;quot; is requested." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &kcy;&acy;&kcy;&ocy;&jcy;-&lcy;&icy;&bcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;  &quot;want&quot;  &ncy;&iecy;&dcy;&ocy;&scy;&tcy;&ucy;&pcy;&iecy;&ncy;, &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&softcy;&tcy;&iecy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &ocy;&bcy; &ocy;&shcy;&icy;&bcy;&kcy;&iecy;: TODO: &Ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&icy;&tcy;&softcy; &ocy;&shcy;&icy;&bcy;&kcy;&ucy;, &iecy;&scy;&lcy;&icy; &zcy;&acy;&pcy;&rcy;&ocy;&shcy;&iecy;&ncy; &ncy;&iecy;&dcy;&ocy;&pcy;&ucy;&scy;&tcy;&icy;&mcy;&ycy;&jcy;  &quot;want&quot; .</span></p> <p><span data-i18n="ac24f1cd8744a4a6db05ee17310daba0202fad8716dd5cb099fc6ce5ec644fc1/52" data-source="Create an empty list, &lt;code&gt;s_common&lt;/code&gt;." onmousemove="i18n(this)">&Scy;&ocy;&zcy;&dcy;&acy;&jcy;&tcy;&iecy; &pcy;&ucy;&scy;&tcy;&ocy;&jcy; &scy;&pcy;&icy;&scy;&ocy;&kcy;  <code>s_common</code> .</span></p> <p><span data-i18n="abe47b4de7b93c90468a6806debd0cf1bd96e7797f6a2f99d1b7429aeb8ee066/76" data-source="If &amp;quot;have&amp;quot; was sent:" onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &bcy;&ycy;&lcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;  &quot;have&quot; :</span></p> <p><span data-i18n="6e44f164d3b8c9be93350bc8c88f00ffd3599f33488e9d6a18eec9a80b53a88b/f0" data-source="Loop through the objects in the order supplied by the client." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&bcy;&icy;&rcy;&acy;&jcy;&tcy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy; &vcy; &pcy;&ocy;&rcy;&yacy;&dcy;&kcy;&iecy;, &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ocy;&mcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ocy;&mcy;.</span></p> <p><span data-i18n="621c423ebc4a7404463ea0603edc6791c337f5e9440e589889a98bc70d8414b6/d9" data-source="For each object, if the server has the object reachable from a ref, add it to &lt;code&gt;s_common&lt;/code&gt;. If a commit is added to &lt;code&gt;s_common&lt;/code&gt;, do not add any ancestors, even if they also appear in &lt;code&gt;have&lt;/code&gt;." onmousemove="i18n(this)">&Dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &iecy;&scy;&lcy;&icy; &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&iecy; &iecy;&scy;&tcy;&softcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;, &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy;&jcy; &pcy;&ocy; &scy;&scy;&ycy;&lcy;&kcy;&iecy;, &dcy;&ocy;&bcy;&acy;&vcy;&softcy;&tcy;&iecy; &iecy;&gcy;&ocy; &vcy;  <code>s_common</code>  . &IEcy;&scy;&lcy;&icy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yacy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&acy; &ZeroWidthSpace;&ZeroWidthSpace;&vcy;  <code>s_common</code> , &ncy;&iecy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&jcy;&tcy;&iecy; &ncy;&icy;&kcy;&acy;&kcy;&icy;&khcy; &pcy;&rcy;&iecy;&dcy;&kcy;&ocy;&vcy;, &dcy;&acy;&zhcy;&iecy; &iecy;&scy;&lcy;&icy; &ocy;&ncy;&icy; &tcy;&acy;&kcy;&zhcy;&iecy; &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy; &vcy;  <code>have</code> .</span></p> <p><span data-i18n="57c656cd67e89c73661accf44c7d6614f5e3467436a254498fea0aeaaae70bd3/3a" data-source="S: Send the git-upload-pack response:" onmousemove="i18n(this)">S: &Ocy;&tcy;&pcy;&rcy;&acy;&vcy;&softcy;&tcy;&iecy; &ocy;&tcy;&vcy;&iecy;&tcy; git-upload-pack:</span></p> <p><span data-i18n="daaf372145c00ee5c6e37d721f0e476a78f3633dd7dc269d3beca74c836b5409/22" data-source="If the server has found a closed set of objects to pack or the request ends with &amp;quot;done&amp;quot;, it replies with the pack. TODO: Document the pack based response" onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&icy;&lcy; &zcy;&acy;&kcy;&rcy;&ycy;&tcy;&ycy;&jcy; &ncy;&acy;&bcy;&ocy;&rcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &dcy;&lcy;&yacy; &ucy;&pcy;&acy;&kcy;&ocy;&vcy;&kcy;&icy; &icy;&lcy;&icy; &zcy;&acy;&pcy;&rcy;&ocy;&scy; &zcy;&acy;&kcy;&acy;&ncy;&chcy;&icy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &ncy;&acy;  &quot;done&quot; , &ocy;&ncy; &ocy;&tcy;&vcy;&iecy;&chcy;&acy;&iecy;&tcy; &pcy;&acy;&kcy;&iecy;&tcy;&ocy;&mcy;. &Zcy;&Acy;&Dcy;&Acy;&CHcy;&Acy;: &Zcy;&acy;&dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &ocy;&tcy;&vcy;&iecy;&tcy; &ncy;&acy; &ocy;&scy;&ncy;&ocy;&vcy;&iecy; &pcy;&acy;&kcy;&iecy;&tcy;&acy;</span></p> <div> <div> <pre class="hljs language-makefile"><span class="hljs-section">S: PACK...</span></pre> </div> </div> <p><span data-i18n="7bf8ffde5dcc72f10c9628fdeb65d2e6c4f7e334ddca0462ed7c29f3cbd00fbd/60" data-source="The returned stream is the side-band-64k protocol supported by the git-upload-pack service, and the pack is embedded into stream 1. Progress messages from the server side MAY appear in stream 2." onmousemove="i18n(this)">&Vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&iecy;&ncy;&ncy;&ycy;&jcy; &pcy;&ocy;&tcy;&ocy;&kcy; &mdash; &ecy;&tcy;&ocy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy; &bcy;&ocy;&kcy;&ocy;&vcy;&ocy;&jcy; &pcy;&ocy;&lcy;&ocy;&scy;&ycy;-64k, &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&jcy; &scy;&lcy;&ucy;&zhcy;&bcy;&ocy;&jcy; git-upload-pack, &icy; &pcy;&acy;&kcy;&iecy;&tcy; &vcy;&scy;&tcy;&rcy;&ocy;&iecy;&ncy; &vcy; &pcy;&ocy;&tcy;&ocy;&kcy; 1. &Scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &ocy; &khcy;&ocy;&dcy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &scy;&ocy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&ycy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy; &Mcy;&Ocy;&Gcy;&Ucy;&Tcy; &pcy;&ocy;&yacy;&vcy;&lcy;&yacy;&tcy;&softcy;&scy;&yacy; &vcy; &pcy;&ocy;&tcy;&ocy;&kcy;&iecy; 2.</span></p> <p><span data-i18n="4f7af7e2d847febb03cc32a3bcc10b875e342a57b6a5a47aa366c966473de83d/46" data-source="Here a &amp;quot;closed set of objects&amp;quot; is defined to have at least one path from every &amp;quot;want&amp;quot; to at least one &amp;quot;common&amp;quot; object." onmousemove="i18n(this)">&Zcy;&dcy;&iecy;&scy;&softcy;  &quot;closed set of objects&quot;  &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &kcy;&acy;&kcy; &icy;&mcy;&iecy;&yucy;&shchcy;&icy;&jcy; &khcy;&ocy;&tcy;&yacy; &bcy;&ycy; &ocy;&dcy;&icy;&ncy; &pcy;&ucy;&tcy;&softcy; &ocy;&tcy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy;  &quot;want&quot;  &khcy;&ocy;&tcy;&yacy; &bcy;&ycy; &kcy; &ocy;&dcy;&ncy;&ocy;&mcy;&ucy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ucy;  &quot;common&quot; .</span></p> <p><span data-i18n="4061605b939e4ad7ea237404429e68fc945145a0fc6b58ec29a13f4ca94a5c18/47" data-source="If the server needs more information, it replies with a status continue response: TODO: Document the non-pack response" onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ucy; &tcy;&rcy;&iecy;&bcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&acy;&yacy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yacy;, &ocy;&ncy; &ocy;&tcy;&vcy;&iecy;&chcy;&acy;&iecy;&tcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy;&mcy; &ocy; &pcy;&rcy;&ocy;&dcy;&ocy;&lcy;&zhcy;&iecy;&ncy;&icy;&icy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&acy;: TODO: &Zcy;&acy;&dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&icy;&rcy;&ucy;&jcy;&tcy;&iecy; &ocy;&tcy;&vcy;&iecy;&tcy;, &ncy;&iecy; &ocy;&tcy;&ncy;&ocy;&scy;&yacy;&shchcy;&icy;&jcy;&scy;&yacy; &kcy; &ucy;&pcy;&acy;&kcy;&ocy;&vcy;&kcy;&iecy;.</span></p> <p><span data-i18n="7458bb79cf6c59db21119be7d5ecf9f25d8dbe1ef2a7e7064d2e61e9ea3f1871/8a" data-source="C: Parse the upload-pack response: TODO: Document parsing response" onmousemove="i18n(this)">C: &Rcy;&acy;&zcy;&ocy;&bcy;&rcy;&acy;&tcy;&softcy; &ocy;&tcy;&vcy;&iecy;&tcy; &ncy;&acy; &pcy;&acy;&kcy;&iecy;&tcy; &zcy;&acy;&gcy;&rcy;&ucy;&zcy;&kcy;&icy;: TODO: &Ocy;&tcy;&vcy;&iecy;&tcy; &ncy;&acy; &acy;&ncy;&acy;&lcy;&icy;&zcy; &dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;</span></p> <p><code>Do another compute step.</code></p> </div> </div> <h2 class="text-body-emphasis"  id="_smart_service_git_receive_pack"><span data-i18n="0e2971a342f7d342f272e4cdf685d2c2da58f17e9b5134e252e7fe2f45cf2700/24" data-source="Smart service git-receive-pack" onmousemove="i18n(this)">&Ucy;&mcy;&ncy;&ycy;&jcy; &scy;&iecy;&rcy;&vcy;&icy;&scy; git-receive-pack</span></h2> <div> <p><span data-i18n="6473ba209141e0d729229e8dbc2c4ce8206ed1fa688d9fa5b4fff3aae1c9673c/db" data-source="This service reads from the repository pointed to by &lt;code&gt;$GIT_URL&lt;/code&gt;." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &scy;&lcy;&ucy;&zhcy;&bcy;&acy; &chcy;&icy;&tcy;&acy;&iecy;&tcy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &icy;&zcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;, &ncy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;  <code>$GIT_URL</code> .</span></p> <p><span data-i18n="5ce0030108a1915e9676bb49db743d01d1b2ab60f79c4d1d9646fee5383cc783/36" data-source="Clients MUST first perform ref discovery with &lt;code&gt;$GIT_URL/info/refs?service=git-receive-pack&lt;/code&gt;." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &scy;&ncy;&acy;&chcy;&acy;&lcy;&acy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&softcy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>$GIT_URL/info/refs?service=git-receive-pack</code> .</span></p> <div> <div> <pre class="hljs language-yaml"><span class="hljs-attr">C:</span> <span class="hljs-string">POST</span> <span class="hljs-string">$GIT_URL/git-receive-pack</span> <span class="hljs-string">HTTP/1.0</span>
<span class="hljs-attr">C: Content-Type:</span> <span class="hljs-string">application/x-git-receive-pack-request</span>
<span class="hljs-attr">C:</span>
<span class="hljs-attr">C:</span> <span class="hljs-string">....0a53e9ddeaddad63ad106860237bbf53411d11a7</span> <span class="hljs-string">441b40d833fdfa93eb2908e52742248faf0ee993</span> <span class="hljs-string">refs/heads/maint\0</span> <span class="hljs-string">report-status</span>
<span class="hljs-attr">C:</span> <span class="hljs-number">0000</span>
<span class="hljs-attr">C:</span> <span class="hljs-string">PACK....</span></pre> </div> </div> <div> <div> <pre class="hljs language-yaml"><span class="hljs-attr">S:</span> <span class="hljs-number">200</span> <span class="hljs-string">OK</span>
<span class="hljs-attr">S: Content-Type:</span> <span class="hljs-string">application/x-git-receive-pack-result</span>
<span class="hljs-attr">S: Cache-Control:</span> <span class="hljs-literal">no</span><span class="hljs-string">-cache</span>
<span class="hljs-attr">S:</span>
<span class="hljs-attr">S:</span> <span class="hljs-string">....</span></pre> </div> </div> <p><span data-i18n="e12796ff5524a08d616847a62674bdf5e01e2f71d0d9780251d2f963e273299b/0f" data-source="Clients MUST NOT reuse or revalidate a cached response. Servers MUST include sufficient Cache-Control headers to prevent caching of the response." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &icy;&lcy;&icy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&yacy;&tcy;&softcy; &kcy;&ecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&jcy; &ocy;&tcy;&vcy;&iecy;&tcy;. &Scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy; &dcy;&ocy;&scy;&tcy;&acy;&tcy;&ocy;&chcy;&ncy;&ocy;&iecy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&ocy;&vcy; Cache-Control, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&tcy;&icy;&tcy;&softcy; &kcy;&iecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &ocy;&tcy;&vcy;&iecy;&tcy;&acy;.</span></p> <p><span data-i18n="72a38b3593a9bf96b0af30af8de9733a55ea43d4ef24f723149a99b286592d21/28" data-source="Servers SHOULD support all capabilities defined here." onmousemove="i18n(this)">&Scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&tcy;&softcy; &vcy;&scy;&iecy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&icy;, &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &zcy;&dcy;&iecy;&scy;&softcy;.</span></p> <p><span data-i18n="4d7b14030cc124a806f91aeffdc5938d8e30b149bca8b6b2e16e810cbf19b2af/b2" data-source="Clients MUST send at least one command in the request body. Within the command portion of the request body clients SHOULD send the id obtained through ref discovery as old_id." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy; &khcy;&ocy;&tcy;&yacy; &bcy;&ycy; &ocy;&dcy;&ncy;&ucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy; &vcy; &tcy;&iecy;&lcy;&iecy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&acy;. &Vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &chcy;&acy;&scy;&tcy;&icy; &tcy;&iecy;&lcy;&acy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&acy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy;, &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&ncy;&ycy;&jcy; &pcy;&ocy;&scy;&rcy;&iecy;&dcy;&scy;&tcy;&vcy;&ocy;&mcy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;, &kcy;&acy;&kcy; old_id.</span></p> <div> <div> <pre class="hljs language-kotlin">update_request  =  command_list
     <span class="hljs-string">&quot;PACK&quot;</span> &lt;binary <span class="hljs-keyword">data</span>&gt;</pre> </div> </div> <div> <div> <pre class="hljs language-makefile">command_list    =  PKT-LINE(command NUL cap_list LF)
     *(command_pkt)
command_pkt     =  PKT-LINE(command LF)
cap_list        =  *(SP capability) SP</pre> </div> </div> <div> <div> <pre class="hljs language-ini"><span class="hljs-attr">command</span>         =  create / delete / update
<span class="hljs-attr">create</span>          =  zero-id SP new_id SP name
<span class="hljs-attr">delete</span>          =  old_id SP zero-id SP name
<span class="hljs-attr">update</span>          =  old_id SP new_id SP name</pre> </div> </div> <p><span data-i18n="7852e8eb86a015a77dc093cd4dfcda7e66647547c067b18167d0bcb80957f017/a0" data-source="TODO: Document this further." onmousemove="i18n(this)">&Zcy;&Acy;&Dcy;&Acy;&CHcy;&Acy;: &Zcy;&acy;&dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&icy;&rcy;&ucy;&jcy;&tcy;&iecy; &ecy;&tcy;&ocy; &dcy;&acy;&lcy;&softcy;&shcy;&iecy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_references"><span data-i18n="69824d3b0e70ca6aaa0da1613b65fd914c442bf1f7ad1bb22bcdfbdfe1a05e39/99" data-source="References" onmousemove="i18n(this)">References</span></h2> <div> <p> <span data-i18n="a0668fb5b64178d4f795b05c7902aaa29f802915624ef9e8d6a2fd8cc862c23e/86" data-source="&lt;a href=&quot;https://www.ietf.org/rfc/rfc1738.txt&quot;&gt;RFC 1738: Uniform Resource Locators (URL)&lt;/a&gt;&lt;a href=&quot;https://www.ietf.org/rfc/rfc2616.txt&quot;&gt;RFC 2616: Hypertext Transfer Protocol &amp;mdash; HTTP/1.1&lt;/a&gt;" onmousemove="i18n(this)"><a href="https://www.ietf.org/rfc/rfc1738.txt">RFC 1738: Uniform Resource Locators (URL)</a> <a href="https://www.ietf.org/rfc/rfc2616.txt">RFC 2616: Hypertext Transfer Protocol &mdash; HTTP/1.1</a></span></p> </div> <h2 class="text-body-emphasis"  id="_see_also"><span data-i18n="2fa97693b70fa87b95b2d1bdf9558e4ac65d5e82d145f13a03849c4d9c4957a9/40" data-source="See also" onmousemove="i18n(this)">See also</span></h2> <div> <p> <span data-i18n="b6a50e305b8ae114108be9b338eeafbeb8c94ff653d66582edb4c7ed07719c39/9b" data-source="&lt;a href=&quot;gitprotocol-pack&quot;&gt;gitprotocol-pack[5]&lt;/a&gt;&lt;a href=&quot;gitprotocol-capabilities&quot;&gt;gitprotocol-capabilities[5]&lt;/a&gt;" onmousemove="i18n(this)"><a href="gitprotocol-pack.html">gitprotocol-pack[5]</a><a href="gitprotocol-capabilities.html">gitprotocol-capabilities[5]</a></span></p> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/gitprotocol-http">https://git-scm.com/docs/gitprotocol-http</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                               <ins class="adsbygoogle"
        style="display:block"
        data-ad-format="autorelaxed"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="7867651344"></ins>
   <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
   </script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitprotocol-pack.html">
                            gitprotocol pack                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitprotocol-v2.html">
                            gitprotocol v2                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitremote-helpers.html">
                            gitremote helpers                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitrepository-layout.html">
                            gitrepository layout                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitrevisions.html">
                            gitrevisions                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitsubmodules.html">
                            gitsubmodules                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gittutorial.html">
                            gittutorial                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="gitprotocol-http.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>